[][src]Struct nakamoto_node::node::NodeConfig

pub struct NodeConfig {
    pub discovery: bool,
    pub listen: Vec<SocketAddr>,
    pub network: Network,
    pub address_book: AddressBook,
    pub timeout: Duration,
    pub name: &'static str,
}

Node configuration.

Fields

discovery: boollisten: Vec<SocketAddr>network: Networkaddress_book: AddressBooktimeout: Durationname: &'static str

Implementations

impl NodeConfig[src]

pub fn named(name: &'static str) -> Self[src]

Trait Implementations

impl Clone for NodeConfig[src]

impl Debug for NodeConfig[src]

impl Default for NodeConfig[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.