Struct sc_peerset::PeersetHandle [−][src]
pub struct PeersetHandle { /* fields omitted */ }
Expand description
Shared handle to the peer set manager (PSM). Distributed around the code.
Implementations
Adds a new reserved peer. The peerset will make an effort to always remain connected to this peer.
Has no effect if the node was already a reserved peer.
Note: Keep in mind that the networking has to know an address for this node, otherwise it will not be able to connect to it.
Remove a previously-added reserved peer.
Has no effect if the node was not a reserved peer.
Sets whether or not the peerset only has connections with nodes marked as reserved for the given set.
Set reserved peers to the new set.
Reports an adjustment to the reputation of the given peer.
Add a peer to a set.
Remove a peer from a set.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PeersetHandle
impl Send for PeersetHandle
impl Sync for PeersetHandle
impl Unpin for PeersetHandle
impl !UnwindSafe for PeersetHandle
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V