[][src]Struct mirai::PollDriver

pub struct PollDriver { /* fields omitted */ }

The driving pressure for events. Assuming a custom executor, this will be moved into a reactor that calls PollDriver::iter

Methods

impl PollDriver[src]

pub fn new(
    timeout: impl Into<Option<Duration>>,
    event_buf_size: usize
) -> IoResult<(PollDriver, PollRegistry)>
[src]

Creates a new PollDriver and corresponding PollRegistry. The registry should be passed around to register [mio::events::Source]s, while the driver will be used from within a reactor to keep pressure in the polled events.

pub fn iter(&mut self) -> IoResult<()>[src]

Most likely, this crate will be used for creating a custom executor. Said executor should have a reactor that runs this in a loop. For error details, see mio::Poll::poll.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.