Struct mioco::Handler
[−]
[src]
pub struct Handler { /* fields omitted */ }
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.
Methods
impl Handler
[src]
fn new(
shared: Rc<RefCell<HandlerShared>>,
scheduler: Box<SchedulerThread>
) -> Self
shared: Rc<RefCell<HandlerShared>>,
scheduler: Box<SchedulerThread>
) -> Self
Create a Handler.
Data shared between Handler and Coroutines belonging to it
Trait Implementations
impl Handler for Handler
[src]
type Timeout = Token
type Message = Message
fn tick(&mut self, event_loop: &mut EventLoop<Self>)
Invoked at the end of an event loop tick.
fn ready(
&mut self,
event_loop: &mut EventLoop<Handler>,
token: Token,
events: EventSet
)
&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 more
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.
fn timeout(&mut self, event_loop: &mut EventLoop<Self>, msg: Self::Timeout)
Invoked when a timeout has completed.
fn interrupted(&mut self, event_loop: &mut EventLoop<Self>)
Invoked when EventLoop
has been interrupted by a signal interrupt.