pub enum PathStateKind {
Unvalidated,
Validating,
Validated,
Failed,
}Expand description
Lifecycle state of a single path within a session.
Variants§
Unvalidated
First seen but never sent / received a validation challenge. Application data MUST NOT be sent on or accepted from this path while in this state.
Validating
Validation challenge has been issued; awaiting a matching
response. Application data MUST NOT cross until Validated.
Validated
Path has completed challenge-response. Application data is allowed.
Failed
Path validation failed (wrong response, timeout, etc.). Path
is permanently disabled within this session — the peer must
re-register from Unvalidated.
Trait Implementations§
Source§impl Clone for PathStateKind
impl Clone for PathStateKind
Source§fn clone(&self) -> PathStateKind
fn clone(&self) -> PathStateKind
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 moreimpl Copy for PathStateKind
Source§impl Debug for PathStateKind
impl Debug for PathStateKind
impl Eq for PathStateKind
Source§impl PartialEq for PathStateKind
impl PartialEq for PathStateKind
Source§fn eq(&self, other: &PathStateKind) -> bool
fn eq(&self, other: &PathStateKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PathStateKind
Auto Trait Implementations§
impl Freeze for PathStateKind
impl RefUnwindSafe for PathStateKind
impl Send for PathStateKind
impl Sync for PathStateKind
impl Unpin for PathStateKind
impl UnsafeUnpin for PathStateKind
impl UnwindSafe for PathStateKind
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