pub enum NnrpError {
Show 23 variants
UnsupportedWireFormat(u8),
SourceTooShort {
expected: usize,
actual: usize,
},
DestinationTooShort {
expected: usize,
actual: usize,
},
InvalidMagic,
InvalidHeaderLength(u8),
UnsupportedVersionMajor(u8),
UnknownMessageType(u8),
UnknownEnumValue {
enum_name: &'static str,
value: u64,
},
ReservedBitsSet {
value: u64,
allowed: u64,
},
InvalidProtocolCombination {
rule: &'static str,
},
ConnectionNotOpen,
ConnectionAlreadyClosed,
SessionAlreadyExists(u32),
UnknownSession(u32),
SessionNotOpen(u32),
OperationAlreadyExists(u64),
UnknownOperation(u64),
InvalidOperationRelationship {
rule: &'static str,
},
InvalidOperationTransition {
from: OperationState,
to: OperationState,
},
NonZeroReservedField {
field: &'static str,
},
PacketLengthMismatch {
declared: usize,
actual: usize,
},
DeclaredLengthMismatch {
field: &'static str,
declared: usize,
actual: usize,
},
MessageLengthOverflow,
}Variants§
UnsupportedWireFormat(u8)
SourceTooShort
DestinationTooShort
InvalidMagic
InvalidHeaderLength(u8)
UnsupportedVersionMajor(u8)
UnknownMessageType(u8)
UnknownEnumValue
ReservedBitsSet
InvalidProtocolCombination
ConnectionNotOpen
ConnectionAlreadyClosed
SessionAlreadyExists(u32)
UnknownSession(u32)
SessionNotOpen(u32)
OperationAlreadyExists(u64)
UnknownOperation(u64)
InvalidOperationRelationship
InvalidOperationTransition
NonZeroReservedField
PacketLengthMismatch
DeclaredLengthMismatch
MessageLengthOverflow
Trait Implementations§
impl Eq for NnrpError
Source§impl Error for NnrpError
impl Error for NnrpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for NnrpError
Auto Trait Implementations§
impl Freeze for NnrpError
impl RefUnwindSafe for NnrpError
impl Send for NnrpError
impl Sync for NnrpError
impl Unpin for NnrpError
impl UnsafeUnpin for NnrpError
impl UnwindSafe for NnrpError
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