Struct ethcore_io::IoChannel
[−]
[src]
pub struct IoChannel<Message> where Message: Send + Clone { /* fields omitted */ }
Allows sending messages into the event loop. All the IO handlers will get the message
in the message
callback.
Methods
impl<Message> IoChannel<Message> where Message: Send + Clone + Sync + 'static
[src]
fn send(&self, message: Message) -> Result<(), IoError>
Send a message through the channel
fn send_sync(&self, message: Message) -> Result<(), IoError>
Send a message through the channel and handle it synchronously
fn send_io(&self, message: IoMessage<Message>) -> Result<(), IoError>
Send low level io message
fn disconnected() -> IoChannel<Message>
Create a new channel disconnected from an event loop.
fn to_handler(handler: Weak<IoHandler<Message>>) -> IoChannel<Message>
Create a new synchronous channel to a given handler.
Trait Implementations
impl<Message> Clone for IoChannel<Message> where Message: Send + Clone + Sync + 'static
[src]
fn clone(&self) -> IoChannel<Message>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more