pub(crate) struct Driver {
signal_ready: bool,
events: Events,
poll: Poll,
}
Expand description
I/O driver, backed by Mio.
Fields§
§signal_ready: bool
True when an event with the signal token is received
events: Events
Reuse the mio::Events
value across calls to poll.
poll: Poll
The system event queue.
Implementations§
source§impl Driver
impl Driver
sourcepub(crate) fn new(nevents: usize) -> Result<(Driver, Handle)>
pub(crate) fn new(nevents: usize) -> Result<(Driver, Handle)>
Creates a new event loop, returning any error that happened during the creation.
pub(crate) fn park(&mut self, rt_handle: &Handle)
pub(crate) fn park_timeout(&mut self, rt_handle: &Handle, duration: Duration)
pub(crate) fn shutdown(&mut self, rt_handle: &Handle)
fn turn(&mut self, handle: &Handle, max_wait: Option<Duration>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Driver
impl RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnwindSafe for Driver
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more