[][src]Struct exonum::node::NodeConfig

pub struct NodeConfig {
    pub genesis: GenesisConfig,
    pub listen_address: SocketAddr,
    pub external_address: SocketAddr,
    pub network: NetworkConfiguration,
    pub consensus_public_key: PublicKey,
    pub consensus_secret_key: SecretKey,
    pub service_public_key: PublicKey,
    pub service_secret_key: SecretKey,
    pub api: NodeApiConfig,
    pub mempool: MemoryPoolConfig,
    pub services_configs: BTreeMap<String, Value>,
    pub database: DbOptions,
    pub connect_list: ConnectListConfig,
}

Configuration for the Node.

Fields

genesis: GenesisConfig

Initial config that will be written in the first block.

listen_address: SocketAddr

Network listening address.

external_address: SocketAddr

Remote Network address used by this node.

network: NetworkConfiguration

Network configuration.

consensus_public_key: PublicKey

Consensus public key.

consensus_secret_key: SecretKey

Consensus secret key.

service_public_key: PublicKey

Service public key.

service_secret_key: SecretKey

Service secret key.

api: NodeApiConfig

Api configuration.

mempool: MemoryPoolConfig

Memory pool configuration.

services_configs: BTreeMap<String, Value>

Additional config, usable for services.

database: DbOptions

Optional database configuration.

connect_list: ConnectListConfig

Node's ConnectList.

Trait Implementations

impl Clone for NodeConfig
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for NodeConfig
[src]

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

impl Serialize for NodeConfig
[src]

Auto Trait Implementations

impl Send for NodeConfig

impl Sync for NodeConfig

Blanket Implementations

impl<T> SerializeContent for T where
    T: Serialize
[src]

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T

impl<T> Erased for T

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

impl<T> Same for T

type Output = T

Should always be Self