Struct ethcore_io::IoContext [−][src]
IO access point. This is passed to all IO handlers and provides an interface to the IO subsystem.
Methods
impl<Message> IoContext<Message> where
    Message: Send + Sync + 'static, [src] 
impl<Message> IoContext<Message> where
    Message: Send + Sync + 'static, pub fn register_timer(
    &self, 
    token: TimerToken, 
    delay: Duration
) -> Result<(), IoError>[src] 
pub fn register_timer(
    &self, 
    token: TimerToken, 
    delay: Duration
) -> Result<(), IoError>Register a new recurring IO timer. 'IoHandler::timeout' will be called with the token.
pub fn register_timer_once(
    &self, 
    token: TimerToken, 
    delay: Duration
) -> Result<(), IoError>[src] 
pub fn register_timer_once(
    &self, 
    token: TimerToken, 
    delay: Duration
) -> Result<(), IoError>Register a new IO timer once. 'IoHandler::timeout' will be called with the token.
pub fn clear_timer(&self, token: TimerToken) -> Result<(), IoError>[src] 
pub fn clear_timer(&self, token: TimerToken) -> Result<(), IoError>Delete a timer.
pub fn message(&self, message: Message) -> Result<(), IoError>[src] 
pub fn message(&self, message: Message) -> Result<(), IoError>Broadcast a message to other IO clients
pub fn channel(&self) -> IoChannel<Message>[src] 
pub fn channel(&self) -> IoChannel<Message>Get message channel
pub fn unregister_handler(&self) -> Result<(), IoError>[src] 
pub fn unregister_handler(&self) -> Result<(), IoError>Unregister current IO handler.