Struct ethcore_service::ClientService
source · [−]pub struct ClientService { /* private fields */ }
Expand description
Client service setup. Creates and registers client and network services with the IO subsystem.
Implementations
sourceimpl ClientService
impl ClientService
sourcepub fn start(
config: ClientConfig,
spec: &Spec,
blockchain_db: Arc<dyn BlockChainDB>,
snapshot_path: &Path,
restoration_db_handler: Box<dyn BlockChainDBHandler>,
_ipc_path: &Path,
miner: Arc<Miner>
) -> Result<ClientService, Error>
pub fn start(
config: ClientConfig,
spec: &Spec,
blockchain_db: Arc<dyn BlockChainDB>,
snapshot_path: &Path,
restoration_db_handler: Box<dyn BlockChainDBHandler>,
_ipc_path: &Path,
miner: Arc<Miner>
) -> Result<ClientService, Error>
Start the ClientService
.
sourcepub fn register_io_handler(
&self,
handler: Arc<dyn IoHandler<ClientIoMessage> + Send>
) -> Result<(), IoError>
pub fn register_io_handler(
&self,
handler: Arc<dyn IoHandler<ClientIoMessage> + Send>
) -> Result<(), IoError>
Get general IO interface
sourcepub fn snapshot_service(&self) -> Arc<SnapshotService>
pub fn snapshot_service(&self) -> Arc<SnapshotService>
Get snapshot interface.
sourcepub fn io(&self) -> Arc<IoService<ClientIoMessage>>
pub fn io(&self) -> Arc<IoService<ClientIoMessage>>
Get network service component
sourcepub fn add_notify(&self, notify: Arc<dyn ChainNotify>)
pub fn add_notify(&self, notify: Arc<dyn ChainNotify>)
Set the actor to be notified on certain chain events
sourcepub fn db(&self) -> Arc<dyn BlockChainDB>
pub fn db(&self) -> Arc<dyn BlockChainDB>
Get a handle to the database.
Auto Trait Implementations
impl !RefUnwindSafe for ClientService
impl Send for ClientService
impl Sync for ClientService
impl Unpin for ClientService
impl !UnwindSafe for ClientService
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more