pub struct PeerRemoval {
pub removed_key: PublicKey,
pub moved: Option<(PeerId, PeerId)>,
}Expand description
Outcome of removing a peer from the registry.
Fields§
§removed_key: PublicKeyPublic key of the removed peer.
moved: Option<(PeerId, PeerId)>When removal swap-moved the last entry into the freed slot: that
entry’s (old, new) identifiers. Every PeerId-keyed structure must
be re-keyed accordingly.
Trait Implementations§
Source§impl Clone for PeerRemoval
impl Clone for PeerRemoval
Source§fn clone(&self) -> PeerRemoval
fn clone(&self) -> PeerRemoval
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeerRemoval
impl Debug for PeerRemoval
Source§impl PartialEq for PeerRemoval
impl PartialEq for PeerRemoval
impl Copy for PeerRemoval
impl Eq for PeerRemoval
impl StructuralPartialEq for PeerRemoval
Auto Trait Implementations§
impl Freeze for PeerRemoval
impl RefUnwindSafe for PeerRemoval
impl Send for PeerRemoval
impl Sync for PeerRemoval
impl Unpin for PeerRemoval
impl UnwindSafe for PeerRemoval
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)