[][src]Struct exonum_node::NetworkConfiguration

pub struct NetworkConfiguration {
    pub max_incoming_connections: usize,
    pub max_outgoing_connections: usize,
    pub tcp_nodelay: bool,
    pub tcp_keep_alive: Option<u64>,
    pub tcp_connect_retry_timeout: Milliseconds,
    pub tcp_connect_max_retries: u64,
}

P2P network configuration of an Exonum node.

Fields

max_incoming_connections: usize

Maximum number of incoming connections established with peers at any given time.

max_outgoing_connections: usize

Maximum number of outgoing connections established with peers at any given time.

tcp_nodelay: bool

Switches on TCP_NODELAY option.

tcp_keep_alive: Option<u64>

Allows to set interval between keep-alive TCP probes. If set to None, keep-alive probes will be disabled.

tcp_connect_retry_timeout: Milliseconds

Retry timeout if an outgoing connection to a peer fails.

tcp_connect_max_retries: u64

Maximum number of retries when connecting to a peer.

Trait Implementations

impl Clone for NetworkConfiguration[src]

impl Copy for NetworkConfiguration[src]

impl Debug for NetworkConfiguration[src]

impl Default for NetworkConfiguration[src]

impl<'de> Deserialize<'de> for NetworkConfiguration[src]

impl PartialEq<NetworkConfiguration> for NetworkConfiguration[src]

impl Serialize for NetworkConfiguration[src]

impl StructuralPartialEq for NetworkConfiguration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,