NodeConfig

Trait NodeConfig 

Source
pub trait NodeConfig {
    const NUM_CONNECTIONS: usize;
    const INTERVAL: u64;
    const PRE_TRUST_WEIGHT: f64;
}
Expand description

Node configuration crate.

Required Associated Constants§

Source

const NUM_CONNECTIONS: usize

The number of neighbors the peer can have. This is also the maximum number of peers that can be connected to the node.

Source

const INTERVAL: u64

Duration of the Epoch.

Source

const PRE_TRUST_WEIGHT: f64

Weight of the pre-trusted score.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§