pub struct PeerRegistry { /* private fields */ }Implementations§
Source§impl PeerRegistry
impl PeerRegistry
pub fn new() -> Self
pub fn observe(&mut self, observation: PeerObservation) -> Result<&PeerRecord>
pub fn get_by_fingerprint(&self, fingerprint: &str) -> Option<&PeerRecord>
pub fn lookup(&self, query: &str) -> Option<&PeerRecord>
pub fn lookup_detail(&self, query: &str) -> PeerLookup<'_>
pub fn records(&self) -> impl Iterator<Item = &PeerRecord>
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
Source§impl PartialEq for PeerRegistry
impl PartialEq for PeerRegistry
Source§fn eq(&self, other: &PeerRegistry) -> bool
fn eq(&self, other: &PeerRegistry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PeerRegistry
impl StructuralPartialEq 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