pub struct KnownPeerEntry {
pub fingerprint: String,
pub aliases: BTreeSet<String>,
pub hostnames: BTreeSet<String>,
pub addresses: BTreeSet<SocketAddr>,
pub transports: BTreeSet<String>,
pub trust_state: TrustState,
pub first_seen_unix_ms: Option<i128>,
pub last_seen_unix_ms: Option<i128>,
}Fields§
§fingerprint: String§aliases: BTreeSet<String>§hostnames: BTreeSet<String>§addresses: BTreeSet<SocketAddr>§transports: BTreeSet<String>§trust_state: TrustState§first_seen_unix_ms: Option<i128>§last_seen_unix_ms: Option<i128>Implementations§
Source§impl KnownPeerEntry
impl KnownPeerEntry
pub fn trusted(fingerprint: impl Into<String>) -> Result<Self>
pub fn from_record(record: &PeerRecord, trust_state: TrustState) -> Result<Self>
Trait Implementations§
Source§impl Clone for KnownPeerEntry
impl Clone for KnownPeerEntry
Source§fn clone(&self) -> KnownPeerEntry
fn clone(&self) -> KnownPeerEntry
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 KnownPeerEntry
impl Debug for KnownPeerEntry
Source§impl<'de> Deserialize<'de> for KnownPeerEntry
impl<'de> Deserialize<'de> for KnownPeerEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KnownPeerEntry
impl PartialEq for KnownPeerEntry
Source§fn eq(&self, other: &KnownPeerEntry) -> bool
fn eq(&self, other: &KnownPeerEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KnownPeerEntry
impl Serialize for KnownPeerEntry
impl Eq for KnownPeerEntry
impl StructuralPartialEq for KnownPeerEntry
Auto Trait Implementations§
impl Freeze for KnownPeerEntry
impl RefUnwindSafe for KnownPeerEntry
impl Send for KnownPeerEntry
impl Sync for KnownPeerEntry
impl Unpin for KnownPeerEntry
impl UnsafeUnpin for KnownPeerEntry
impl UnwindSafe for KnownPeerEntry
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