# Struct ethcore_io::IoManager [−] [src]

    pub struct IoManager<Message> where Message: Send + Sync { /* fields omitted */ }

Root IO handler. Manages user handlers, messages and IO timers.

## Methods

### `impl<Message> IoManager<Message> where Message: Send + Sync + Clone + 'static`
[src]

#### `fn start(panic_handler: Arc<PanicHandler>,
event_loop: &mut EventLoop<IoManager<Message>>,
handlers: Arc<RwLock<Slab<Arc<IoHandler<Message>>, usize>>>)
-> Result<(), IoError>`

Creates a new instance and registers it with the event loop.

## Trait Implementations

### `impl<Message> Handler for IoManager<Message> where Message: Send + Clone + Sync + 'static`
[src]

#### `type Timeout = Token`

#### `type Message = IoMessage<Message>`

#### `fn ready(&mut self,
_event_loop: &mut EventLoop<Self>,
token: Token,
events: Ready)`

Invoked when the socket represented by `token` is ready to be operated on. `events` indicates the specific operations that are ready to be performed. Read more

#### `fn timeout(&mut self, event_loop: &mut EventLoop<Self>, token: Token)`

Invoked when a timeout has completed.

#### `fn notify(&mut self, event_loop: &mut EventLoop<Self>, msg: Self::Message)`

Invoked when a message has been received via the event loop's channel.

#### `fn interrupted(&mut self, event_loop: &mut EventLoop<Self>)`

Invoked when `EventLoop` has been interrupted by a signal interrupt.

#### `fn tick(&mut self, event_loop: &mut EventLoop<Self>)`

Invoked at the end of an event loop tick.

# 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`)