# Struct ethcore_ipc_nano::Worker [−] [src]

    pub struct Worker<S: ?Sized> where S: IpcInterface { /* fields omitted */ }

Generic worker to handle service (binded) sockets

## Methods

### `impl<S: ?Sized> Worker<S> where S: IpcInterface`
[src]

#### `fn new(service: &Arc<S>) -> Worker<S>`

New worker over specified `service`

#### `fn poll(&mut self)`

Polls all sockets, reads and dispatches method invocations

#### `fn add_duplex(&mut self, addr: &str) -> Result<(), SocketError>`

Add exclusive socket for paired client Only one connection over this address is allowed

#### `fn add_reqrep(&mut self, addr: &str) -> Result<(), SocketError>`

Add generic socket for request-reply style communications with multiple clients

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