Struct ethcore_io::IoManager
[−]
[src]
pub struct IoManager<Message> where Message: Send + Sync { /* fields omitted */ }
Root IO handler. Manages user handlers, messages and IO timers.
Methods
impl<Message> IoManager<Message> where Message: Send + Sync + Clone + 'static
[src]
fn start(panic_handler: Arc<PanicHandler>,
event_loop: &mut EventLoop<IoManager<Message>>,
handlers: Arc<RwLock<Slab<Arc<IoHandler<Message>>, usize>>>)
-> Result<(), IoError>
event_loop: &mut EventLoop<IoManager<Message>>,
handlers: Arc<RwLock<Slab<Arc<IoHandler<Message>>, usize>>>)
-> Result<(), IoError>
Creates a new instance and registers it with the event loop.
Trait Implementations
impl<Message> Handler for IoManager<Message> where Message: Send + Clone + Sync + 'static
[src]
type Timeout = Token
type Message = IoMessage<Message>
fn ready(&mut self,
_event_loop: &mut EventLoop<Self>,
token: Token,
events: Ready)
_event_loop: &mut EventLoop<Self>,
token: Token,
events: Ready)
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 timeout(&mut self, event_loop: &mut EventLoop<Self>, token: Token)
Invoked when a timeout has completed.
fn notify(&mut self, event_loop: &mut EventLoop<Self>, msg: Self::Message)
Invoked when a message has been received via the event loop's channel.
fn interrupted(&mut self, event_loop: &mut EventLoop<Self>)
Invoked when EventLoop
has been interrupted by a signal interrupt.
fn tick(&mut self, event_loop: &mut EventLoop<Self>)
Invoked at the end of an event loop tick.