pub enum ControlError {
Show 14 variants
Poisoned,
Truncated,
BadMagic,
BadVersion,
NonCanonical,
WrongSession,
ReservedKind,
PayloadTooLarge,
ReplayOrReorder,
TransactionConflict,
SequenceExhausted,
LengthOverflow,
AllocationFailed,
DestinationTooSmall,
}Expand description
Bounded application-control validation or state failure.
Variants§
Poisoned
The session is terminally poisoned.
Truncated
The peer record ended before its canonical length.
BadMagic
The peer record did not use the application-control magic.
BadVersion
The peer selected an unsupported control wire version.
NonCanonical
The peer record was not the one canonical encoding.
WrongSession
The peer record carried another session nonce.
ReservedKind
The local or peer kind is reserved for library framing.
PayloadTooLarge
The payload exceeds the negotiated finite maximum.
ReplayOrReorder
The peer sequence was stale, future, replayed, or reordered.
TransactionConflict
Application control conflicted with an open native transaction.
SequenceExhausted
A direction exhausted its monotonic sequence space.
LengthOverflow
A checked wire-length computation overflowed.
AllocationFailed
The bounded receive or encode allocation failed.
DestinationTooSmall
An internal caller supplied less than the precomputed wire length.
Trait Implementations§
Source§impl Clone for ControlError
impl Clone for ControlError
Source§fn clone(&self) -> ControlError
fn clone(&self) -> ControlError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ControlError
Source§impl Debug for ControlError
impl Debug for ControlError
Source§impl Display for ControlError
impl Display for ControlError
impl Eq for ControlError
Source§impl Error for ControlError
impl Error for ControlError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()