# Struct ethsync::SyncConfig [−] [src]

    pub struct SyncConfig {
        pub max_download_ahead_blocks: usize,
        pub download_old_blocks: bool,
        pub network_id: u64,
        pub subprotocol_name: [u8; 3],
        pub light_subprotocol_name: [u8; 3],
        pub fork_block: Option<(BlockNumber, H256)>,
        pub warp_sync: bool,
        pub serve_light: bool,
    }

Sync configuration

## Fields

`max_download_ahead_blocks: usize`

Max blocks to download ahead

`download_old_blocks: bool`

Enable ancient block download.

`network_id: u64`

Network ID

`subprotocol_name: [u8; 3]`

Main "eth" subprotocol name.

`light_subprotocol_name: [u8; 3]`

Light "les" subprotocol name.

`fork_block: Option<(BlockNumber, H256)>`

Fork block to check

`warp_sync: bool`

Enable snapshot sync

`serve_light: bool`

Enable light client server.

## Trait Implementations

### `impl Debug for SyncConfig`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl Clone for SyncConfig`
[src]

#### `fn clone(&self) -> SyncConfig`

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0

Performs copy-assignment from `source`. Read more

### `impl Copy for SyncConfig`
[src]

### `impl Default for SyncConfig`
[src]

#### `fn default() -> SyncConfig`

Returns the "default value" for a type. Read more

### `impl BinaryConvertable for SyncConfig where SyncConfig: Copy`

#### `fn from_bytes(bytes: &[u8],
_length_stack: &mut VecDeque<usize>)
-> Result<Self, BinaryConvertError>`

#### `fn to_bytes(&self,
buffer: &mut [u8],
_length_stack: &mut VecDeque<usize>)
-> Result<(), BinaryConvertError>`

#### `fn size(&self) -> usize`

#### `fn from_empty_bytes() -> Result<Self, BinaryConvertError>`

#### `fn len_params() -> usize`

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