pub enum DisassociateReason {
Normal,
HandshakeFailure(String),
Quarantined,
Other(String),
}Expand description
Why a peer is disassociating. Quarantined is permanent until the
quarantine window expires.
Variants§
Normal
Normal shutdown — the peer is cooperating.
HandshakeFailure(String)
The peer rejected our handshake (bad cookie, mismatched protocol).
Quarantined
We detected a UID change and are quarantining the old incarnation.
Other(String)
Catch-all error.
Trait Implementations§
Source§impl Clone for DisassociateReason
impl Clone for DisassociateReason
Source§fn clone(&self) -> DisassociateReason
fn clone(&self) -> DisassociateReason
Returns a duplicate of the value. Read more
1.0.0 · 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 DisassociateReason
impl Debug for DisassociateReason
Source§impl<'de> Deserialize<'de> for DisassociateReason
impl<'de> Deserialize<'de> for DisassociateReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DisassociateReason
impl PartialEq for DisassociateReason
Source§impl Serialize for DisassociateReason
impl Serialize for DisassociateReason
impl Eq for DisassociateReason
impl StructuralPartialEq for DisassociateReason
Auto Trait Implementations§
impl Freeze for DisassociateReason
impl RefUnwindSafe for DisassociateReason
impl Send for DisassociateReason
impl Sync for DisassociateReason
impl Unpin for DisassociateReason
impl UnsafeUnpin for DisassociateReason
impl UnwindSafe for DisassociateReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.