pub(crate) struct Driver {
signal_ready: bool,
events: Events,
poll: Poll,
}Expand description
I/O driver, backed by Mio.
Fields§
§signal_ready: boolTrue when an event with the signal token is received
events: EventsReuse the mio::Events value across calls to poll.
poll: PollThe 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