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§impl Debug for PeerRegistry
impl Debug for PeerRegistry
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