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

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