Enum libp2p_core::nodes::collection::CollectionNodeAccept
source · pub enum CollectionNodeAccept {
ReplacedExisting,
NewEntry,
}Expand description
Outcome of accepting a node.
Variants
ReplacedExisting
We replaced an existing node.
NewEntry
We didn’t replace anything existing.
Trait Implementations
sourceimpl Clone for CollectionNodeAccept
impl Clone for CollectionNodeAccept
sourcefn clone(&self) -> CollectionNodeAccept
fn clone(&self) -> CollectionNodeAccept
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CollectionNodeAccept
impl Debug for CollectionNodeAccept
sourceimpl PartialEq<CollectionNodeAccept> for CollectionNodeAccept
impl PartialEq<CollectionNodeAccept> for CollectionNodeAccept
sourcefn eq(&self, other: &CollectionNodeAccept) -> bool
fn eq(&self, other: &CollectionNodeAccept) -> bool
impl Copy for CollectionNodeAccept
impl Eq for CollectionNodeAccept
impl StructuralEq for CollectionNodeAccept
impl StructuralPartialEq for CollectionNodeAccept
Auto Trait Implementations
impl RefUnwindSafe for CollectionNodeAccept
impl Send for CollectionNodeAccept
impl Sync for CollectionNodeAccept
impl Unpin for CollectionNodeAccept
impl UnwindSafe for CollectionNodeAccept
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more