[][src]Struct exonum_node::NodeConfig

pub struct NodeConfig {
    pub consensus: ConsensusConfig,
    pub listen_address: SocketAddr,
    pub external_address: String,
    pub network: NetworkConfiguration,
    pub api: NodeApiConfig,
    pub mempool: MemoryPoolConfig,
    pub connect_list: ConnectListConfig,
    pub thread_pool_size: Option<u8>,
}

Configuration for the Node.

Fields

consensus: ConsensusConfig

Initial consensus configuration that will be written in the genesis block.

listen_address: SocketAddr

Network listening address.

external_address: String

Remote Network address used by this node.

network: NetworkConfiguration

P2P network configuration.

api: NodeApiConfig

HTTP API configuration.

mempool: MemoryPoolConfig

Memory pool configuration.

connect_list: ConnectListConfig

List of peers the node will connect to on start.

thread_pool_size: Option<u8>

Number of threads allocated for transaction verification.

Trait Implementations

impl Clone for NodeConfig[src]

impl Debug for NodeConfig[src]

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

impl PartialEq<NodeConfig> for NodeConfig[src]

impl Serialize for NodeConfig[src]

impl StructuralPartialEq for NodeConfig[src]

impl ValidateInput for NodeConfig[src]

type Error = Error

The type returned in the event of a validate error.

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

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.

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