Struct sc_peerset::SetConfig
source · pub struct SetConfig {
pub in_peers: u32,
pub out_peers: u32,
pub bootnodes: Vec<PeerId>,
pub reserved_nodes: HashSet<PeerId>,
pub reserved_only: bool,
}
Expand description
Configuration for a single set of nodes.
Fields§
§in_peers: u32
Maximum number of ingoing links to peers.
out_peers: u32
Maximum number of outgoing links to peers.
bootnodes: Vec<PeerId>
List of bootstrap nodes to initialize the set with.
Note: Keep in mind that the networking has to know an address for these nodes, otherwise it will not be able to connect to them.
reserved_nodes: HashSet<PeerId>
Lists of nodes we should always be connected to.
Note: Keep in mind that the networking has to know an address for these nodes, otherwise it will not be able to connect to them.
reserved_only: bool
If true, we only accept nodes in SetConfig::reserved_nodes
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SetConfig
impl Send for SetConfig
impl Sync for SetConfig
impl Unpin for SetConfig
impl UnwindSafe for SetConfig
Blanket Implementations§
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read more§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.