[−][src]Struct mirai::PollDriver
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]
timeout: impl Into<Option<Duration>>,
event_buf_size: usize
) -> IoResult<(PollDriver, PollRegistry)>
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
impl RefUnwindSafe for PollDriver
impl Send for PollDriver
impl Sync for PollDriver
impl Unpin for PollDriver
impl UnwindSafe for PollDriver
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,