Struct ethcore_io::IoService[][src]

pub struct IoService<Message> where
    Message: Send + Sync + '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 + 'static, 
[src]

Starts IO event loop

Stops the IO service.

Register 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> Drop for IoService<Message> where
    Message: Send + Sync
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<Message> Send for IoService<Message>

impl<Message> Sync for IoService<Message>