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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more