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

    pub struct LightSync { /* fields omitted */ }

Service for light synchronization.

## Methods

### `impl LightSync`
[src]

#### `fn new<L>(params: LightSyncParams<L>) -> Result<Self, NetworkError> where L: LightChainClient + Provider + 'static`

Create a new light sync service.

## Trait Implementations

### `impl ManageNetwork for LightSync`
[src]

#### `fn accept_unreserved_peers(&self)`

Set to allow unreserved peers to connect

#### `fn deny_unreserved_peers(&self)`

Set to deny unreserved peers to connect

#### `fn remove_reserved_peer(&self, peer: String) -> Result<(), String>`

Remove reservation for the peer

#### `fn add_reserved_peer(&self, peer: String) -> Result<(), String>`

Add reserved peer

#### `fn start_network(&self)`

Start network

#### `fn stop_network(&self)`

Stop network

#### `fn network_config(&self) -> NetworkConfiguration`

Query the current configuration of the network

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