pub struct Handler { /* private fields */ }
Expand description
Mioco event loop Handler
Registered in mio_orig::EventLoop
and implementing
mio_orig::Handler
. This struct
is quite internal so you should not
have to worry about it.
Implementations§
Trait Implementations§
Source§impl Handler for Handler
impl Handler for Handler
type Timeout = Token
type Message = Message
Source§fn tick(&mut self, event_loop: &mut EventLoop<Self>)
fn tick(&mut self, event_loop: &mut EventLoop<Self>)
Invoked at the end of an event loop tick.
Source§fn ready(
&mut self,
event_loop: &mut EventLoop<Handler>,
token: Token,
events: EventSet,
)
fn ready( &mut self, event_loop: &mut EventLoop<Handler>, token: Token, events: EventSet, )
Invoked when the socket represented by
token
is ready to be operated
on. events
indicates the specific operations that are
ready to be performed. Read moreSource§fn notify(&mut self, event_loop: &mut EventLoop<Handler>, msg: Self::Message)
fn notify(&mut self, event_loop: &mut EventLoop<Handler>, msg: Self::Message)
Invoked when a message has been received via the event loop’s channel.
Source§fn timeout(&mut self, event_loop: &mut EventLoop<Self>, msg: Self::Timeout)
fn timeout(&mut self, event_loop: &mut EventLoop<Self>, msg: Self::Timeout)
Invoked when a timeout has completed.
Source§fn interrupted(&mut self, event_loop: &mut EventLoop<Self>)
fn interrupted(&mut self, event_loop: &mut EventLoop<Self>)
Invoked when
EventLoop
has been interrupted by a signal interrupt.Auto Trait Implementations§
impl Freeze for Handler
impl !RefUnwindSafe for Handler
impl !Send for Handler
impl !Sync for Handler
impl Unpin for Handler
impl !UnwindSafe for Handler
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