Struct nakamoto_p2p::protocol::connmgr::Config[][src]

pub struct Config {
    pub target_outbound_peers: usize,
    pub max_inbound_peers: usize,
    pub retry: Vec<SocketAddr>,
    pub required_services: ServiceFlags,
    pub preferred_services: ServiceFlags,
}

Connection manager configuration.

Fields

target_outbound_peers: usize

Target number of outbound peer connections.

max_inbound_peers: usize

Maximum number of inbound peer connections.

retry: Vec<SocketAddr>

Peer addresses that should always be retried.

required_services: ServiceFlags

Peer services required.

preferred_services: ServiceFlags

Peer services preferred. We try to maintain as many connections to peers with these services.

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[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> From<T> for T[src]

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.