pub struct PollDriver { /* private fields */ }Expand description
The driving pressure for events. Assuming a custom executor, this will be moved into a reactor
that calls PollDriver::iter
Implementations§
Source§impl PollDriver
impl PollDriver
Sourcepub fn new(
timeout: impl Into<Option<Duration>>,
event_buf_size: usize,
) -> IoResult<(PollDriver, PollRegistry)>
pub fn new( 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.
Sourcepub fn iter(&mut self) -> IoResult<()>
pub fn iter(&mut self) -> IoResult<()>
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 !Freeze for PollDriver
impl RefUnwindSafe for PollDriver
impl Send for PollDriver
impl Sync for PollDriver
impl Unpin for PollDriver
impl UnsafeUnpin for PollDriver
impl UnwindSafe for PollDriver
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