pub struct PeerRegistry {
pub peers: BTreeMap<PeerId, PeerInfo>,
}Expand description
In-memory registry of known peers in the P2P mesh.
Fields§
§peers: BTreeMap<PeerId, PeerInfo>Implementations§
Trait Implementations§
Source§impl Clone for PeerRegistry
impl Clone for PeerRegistry
Source§fn clone(&self) -> PeerRegistry
fn clone(&self) -> PeerRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeerRegistry
impl Debug for PeerRegistry
Source§impl Default for PeerRegistry
impl Default for PeerRegistry
Source§fn default() -> PeerRegistry
fn default() -> PeerRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PeerRegistry
impl RefUnwindSafe for PeerRegistry
impl Send for PeerRegistry
impl Sync for PeerRegistry
impl Unpin for PeerRegistry
impl UnsafeUnpin for PeerRegistry
impl UnwindSafe for PeerRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more