pub trait NodeConfig {
const NUM_CONNECTIONS: usize;
const INTERVAL: u64;
const PRE_TRUST_WEIGHT: f64;
}Expand description
Node configuration crate.
Required Associated Constants§
Sourceconst NUM_CONNECTIONS: usize
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.
Sourceconst PRE_TRUST_WEIGHT: f64
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.