pub enum PeerDirectoryEvent {
Seen {
node_id: NodeId,
x25519_pub: [u8; 32],
name: String,
via: PeerInfoSource,
},
Forgotten {
node_id: NodeId,
},
}Expand description
Event published by the daemon’s PeerDirectory when its peer
keystore mutates. Plugins subscribe to react to identity changes
without polling.
Variants§
Seen
A peer’s identity was learned or refreshed.
Fields
§
via: PeerInfoSourceWhether the identity arrived directly or through routing.
Forgotten
A peer was forgotten via peers.forget.
Trait Implementations§
Source§impl Clone for PeerDirectoryEvent
impl Clone for PeerDirectoryEvent
Source§fn clone(&self) -> PeerDirectoryEvent
fn clone(&self) -> PeerDirectoryEvent
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 moreAuto Trait Implementations§
impl Freeze for PeerDirectoryEvent
impl RefUnwindSafe for PeerDirectoryEvent
impl Send for PeerDirectoryEvent
impl Sync for PeerDirectoryEvent
impl Unpin for PeerDirectoryEvent
impl UnsafeUnpin for PeerDirectoryEvent
impl UnwindSafe for PeerDirectoryEvent
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