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>
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>
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