# Trait ethsync::ManageNetwork [−] [src]

    pub trait ManageNetwork: Send + Sync {
        fn accept_unreserved_peers(&self);
        fn deny_unreserved_peers(&self);
        fn remove_reserved_peer(&self, peer: String) -> Result<(), String>;
        fn add_reserved_peer(&self, peer: String) -> Result<(), String>;
        fn start_network(&self);
        fn stop_network(&self);
        fn network_config(&self) -> NetworkConfiguration;
    }

Trait for managing network

## Required Methods

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

## Trait Implementations

### `impl IpcConfig for ManageNetwork`
[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 ManageNetwork for EthSync`
- `impl ManageNetwork for LightSync`

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