tokio::runtime::driver

Type Alias IoDriver

Source
pub(crate) type IoDriver = Driver;

Aliased Type§

struct IoDriver {
    signal_ready: bool,
    events: Events,
    poll: Poll,
}

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

Source

pub(crate) fn new(nevents: usize) -> Result<(Driver, Handle)>

Creates a new event loop, returning any error that happened during the creation.

Source

pub(crate) fn park(&mut self, rt_handle: &Handle)

Source

pub(crate) fn park_timeout(&mut self, rt_handle: &Handle, duration: Duration)

Source

pub(crate) fn shutdown(&mut self, rt_handle: &Handle)

Source

fn turn(&mut self, handle: &Handle, max_wait: Option<Duration>)

Trait Implementations

Source§

impl Debug for Driver

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more