Struct ethcore_io::IoService [] [src]

pub struct IoService<Message> where Message: Send + Sync + Clone + 'static { /* fields omitted */ }

General IO Service. Starts an event loop and dispatches IO requests. 'Message' is a notification message type

Methods

impl<Message> IoService<Message> where Message: Send + Sync + Clone + 'static
[src]

Starts IO event loop

Regiter an IO handler with the event loop.

Send a message over the network. Normaly HostIo::send should be used. This can be used from non-io threads.

Create a new message channel

Trait Implementations

impl<Message> MayPanic for IoService<Message> where Message: Send + Sync + Clone + 'static
[src]

closure will be invoked whenever panic in thread is caught

impl<Message> Drop for IoService<Message> where Message: Send + Sync + Clone
[src]

A method called when the value goes out of scope. Read more