pub enum PfsFailure {
Capacity,
SessionMissing,
Crypto,
Send,
Timeout,
Other,
}Expand description
Why a local PFS negotiation step failed. Surfaced to applications via
LocalNode::on_pfs_failed so a failed/stalled negotiation reports a
reason instead of silently doing nothing.
Variants§
Capacity
No free identity or peer slot to activate the ephemeral session —
e.g. the MAC IDENTITIES/peer table is exhausted, or more concurrent
PFS sessions were requested than there are ephemeral identity slots.
SessionMissing
A PFS response or teardown referenced a session that does not exist.
Crypto
Crypto failure while deriving the ephemeral session keys.
Send
Failed to transmit a PFS control frame to the peer.
Timeout
A sent PFS request was not answered before its deadline (the peer never responded, or its response was lost).
Other
Any other node-layer failure during PFS processing.
Trait Implementations§
Source§impl Clone for PfsFailure
impl Clone for PfsFailure
Source§fn clone(&self) -> PfsFailure
fn clone(&self) -> PfsFailure
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 PfsFailure
impl Debug for PfsFailure
Source§impl PartialEq for PfsFailure
impl PartialEq for PfsFailure
impl Copy for PfsFailure
impl Eq for PfsFailure
impl StructuralPartialEq for PfsFailure
Auto Trait Implementations§
impl Freeze for PfsFailure
impl RefUnwindSafe for PfsFailure
impl Send for PfsFailure
impl Sync for PfsFailure
impl Unpin for PfsFailure
impl UnwindSafe for PfsFailure
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)