pub struct PeerObservation {
pub fingerprint: String,
pub alias: Option<String>,
pub hostname: Option<String>,
pub address: SocketAddr,
pub transports: BTreeSet<String>,
pub seen_unix_ms: i128,
}Fields§
§fingerprint: String§alias: Option<String>§hostname: Option<String>§address: SocketAddr§transports: BTreeSet<String>§seen_unix_ms: i128Implementations§
Source§impl PeerObservation
impl PeerObservation
pub fn new( fingerprint: impl Into<String>, address: SocketAddr, seen_unix_ms: i128, ) -> Self
pub fn with_alias(self, alias: impl Into<String>) -> Self
pub fn with_hostname(self, hostname: impl Into<String>) -> Self
pub fn with_transport(self, transport: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for PeerObservation
impl Clone for PeerObservation
Source§fn clone(&self) -> PeerObservation
fn clone(&self) -> PeerObservation
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 PeerObservation
impl Debug for PeerObservation
Source§impl PartialEq for PeerObservation
impl PartialEq for PeerObservation
Source§fn eq(&self, other: &PeerObservation) -> bool
fn eq(&self, other: &PeerObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PeerObservation
impl StructuralPartialEq for PeerObservation
Auto Trait Implementations§
impl Freeze for PeerObservation
impl RefUnwindSafe for PeerObservation
impl Send for PeerObservation
impl Sync for PeerObservation
impl Unpin for PeerObservation
impl UnsafeUnpin for PeerObservation
impl UnwindSafe for PeerObservation
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