Trait ethsync::SyncProvider
[−]
[src]
pub trait SyncProvider: Send + Sync { fn status(&self) -> SyncStatus; fn peers(&self) -> Vec<PeerInfo>; fn enode(&self) -> Option<String>; fn transactions_stats(&self) -> BTreeMap<H256, TransactionStats>; }
Current sync status
Required Methods
fn status(&self) -> SyncStatus
Get sync status
fn peers(&self) -> Vec<PeerInfo>
Get peers information
fn enode(&self) -> Option<String>
Get the enode if available.
fn transactions_stats(&self) -> BTreeMap<H256, TransactionStats>
Returns propagation count for pending transactions.
Trait Implementations
impl IpcConfig for SyncProvider
[src]
fn api_version() -> Version
Current service api version Should be increased if any of the methods changes signature Read more
fn protocol_version() -> Version
Current ipc protocol version Should be increased only if signature of system methods changes Read more
fn handshake(handshake: &Handshake) -> bool
Default handshake requires exact versions match
Implementors
impl SyncProvider for EthSync