pub struct PeerInfo {
pub public_key: PublicKey,
pub pinned: bool,
pub route: Option<CachedRoute>,
pub last_seen_ms: u64,
}Expand description
Shared metadata tracked for a remote peer.
Fields§
§public_key: PublicKeyFull public key.
pinned: boolWhether this peer was explicitly configured by the local application.
route: Option<CachedRoute>Most recent learned route, if any.
last_seen_ms: u64Most recent observation timestamp.
Trait Implementations§
impl Eq for PeerInfo
impl StructuralPartialEq for PeerInfo
Auto Trait Implementations§
impl Freeze for PeerInfo
impl RefUnwindSafe for PeerInfo
impl Send for PeerInfo
impl Sync for PeerInfo
impl Unpin for PeerInfo
impl UnwindSafe for PeerInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)