Struct mio_poll_wrapper::PollWrapper [−][src]
pub struct PollWrapper { /* fields omitted */ }
A wrapper around mio's Poll method
You can create this
Methods
impl PollWrapper
[src]
impl PollWrapper
pub fn new() -> Result<PollWrapper>
[src]
pub fn new() -> Result<PollWrapper>
Create a new poll wrapper
pub fn handle<E>(
self,
handler: impl FnMut(Event, &mut Handle) -> Result<(), E>
) -> Result<(), E>
[src]
pub fn handle<E>(
self,
handler: impl FnMut(Event, &mut Handle) -> Result<(), E>
) -> Result<(), E>
Start the poll routine. Every time an event gets received, the callback handler gets called.
The first argument of the handler is the event that is received.
The second argument is a handle. See Handle for more information.
pub fn register(
&mut self,
evented: &impl Evented
) -> Result<Token>
[src]
pub fn register(
&mut self,
evented: &impl Evented
) -> Result<Token>
Register an evented with the poll. This returns the token that was registered.
Auto Trait Implementations
impl Send for PollWrapper
impl Send for PollWrapper
impl Sync for PollWrapper
impl Sync for PollWrapper