# Struct ethcore::service::ClientService [−] [src]

    pub struct ClientService { /* fields omitted */ }

Client service setup. Creates and registers client and network services with the IO subsystem.

## Methods

### `impl ClientService`
[src]

#### `fn start(config: ClientConfig,
spec: &Spec,
client_path: &Path,
snapshot_path: &Path,
ipc_path: &Path,
miner: Arc<Miner>)
-> Result<ClientService, Error>`

Start the `ClientService`.

#### `fn add_node(&mut self, _enode: &str)`

Add a node to network

#### `fn register_io_handler(&self,
handler: Arc<IoHandler<ClientIoMessage> + Send>)
-> Result<(), IoError>`

Get general IO interface

#### `fn client(&self) -> Arc<Client>`

Get client interface

#### `fn snapshot_service(&self) -> Arc<SnapshotService>`

Get snapshot interface.

#### `fn io(&self) -> Arc<IoService<ClientIoMessage>>`

Get network service component

#### `fn add_notify(&self, notify: Arc<ChainNotify>)`

Set the actor to be notified on certain chain events

## Trait Implementations

### `impl MayPanic for ClientService`
[src]

#### `fn on_panic<F>(&self, closure: F) where F: OnPanicListener`

`closure` will be invoked whenever panic in thread is caught

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