# 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

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)