pub trait Initiate:
'static
+ Send
+ Sync
+ Unpin {
// Required method
fn initiator(&self) -> &IoInitiator;
}
Expand description
An object that can be used to initiate an IO, by returning a reference to an
IoInitiator
.
Required Methods§
Sourcefn initiator(&self) -> &IoInitiator
fn initiator(&self) -> &IoInitiator
Returns a reference to the initiator to use for IO operations.
A different initiator may be returned each time this is called, allowing an object (timer, socket, etc.) to be moved between initiators.