Struct ethsync::NetworkConfiguration [] [src]

pub struct NetworkConfiguration {
    pub config_path: Option<String>,
    pub net_config_path: Option<String>,
    pub listen_address: Option<String>,
    pub public_address: Option<String>,
    pub udp_port: Option<u16>,
    pub nat_enabled: bool,
    pub discovery_enabled: bool,
    pub boot_nodes: Vec<String>,
    pub use_secret: Option<Secret>,
    pub max_peers: u32,
    pub min_peers: u32,
    pub max_pending_peers: u32,
    pub snapshot_peers: u32,
    pub reserved_nodes: Vec<String>,
    pub allow_non_reserved: bool,
    pub allow_ips: AllowIP,
}

Network service configuration

Fields

Directory path to store general network configuration. None means nothing will be saved

Directory path to store network-specific configuration. None means nothing will be saved

IP address to listen for incoming connections. Listen to all connections by default

IP address to advertise. Detected automatically if none.

Port for UDP connections, same as TCP by default

Enable NAT configuration

Enable discovery

List of initial node addresses

Use provided node key instead of default

Max number of connected peers to maintain

Min number of connected peers to maintain

Max pending peers.

Reserved snapshot sync peers.

List of reserved node addresses.

The non-reserved peer mode.

IP Filtering

Methods

impl NetworkConfiguration
[src]

Create a new default config.

Create a new local config.

Attempt to convert this config into a BasicNetworkConfiguration.

Trait Implementations

impl Debug for NetworkConfiguration
[src]

Formats the value using the given formatter.

impl Clone for NetworkConfiguration
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for NetworkConfiguration
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for NetworkConfiguration
[src]

impl From<BasicNetworkConfiguration> for NetworkConfiguration
[src]

Performs the conversion.