pub enum BindingDecision {
NewBinding,
Reaffirmed,
SquatterRejected {
previous: Vec<u8>,
},
CapacityExhausted,
}Expand description
Bewertung eines neuen IdentityToken-Announces durch den Cache.
Variants§
NewBinding
Erste Bindung — aufgenommen.
Reaffirmed
Bindung existiert und passt — der Peer ist konsistent.
SquatterRejected
Konflikt — gleiche GuidPrefix, abweichendes IdentityToken. Der ankommende Announce muss abgelehnt werden.
CapacityExhausted
Cache ist voll und der Peer ist neu — Caller entscheidet (Eviction-Strategie, sonst Reject).
Trait Implementations§
Source§impl Clone for BindingDecision
impl Clone for BindingDecision
Source§fn clone(&self) -> BindingDecision
fn clone(&self) -> BindingDecision
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 BindingDecision
impl Debug for BindingDecision
Source§impl PartialEq for BindingDecision
impl PartialEq for BindingDecision
Source§fn eq(&self, other: &BindingDecision) -> bool
fn eq(&self, other: &BindingDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BindingDecision
impl StructuralPartialEq for BindingDecision
Auto Trait Implementations§
impl Freeze for BindingDecision
impl RefUnwindSafe for BindingDecision
impl Send for BindingDecision
impl Sync for BindingDecision
impl Unpin for BindingDecision
impl UnsafeUnpin for BindingDecision
impl UnwindSafe for BindingDecision
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