pub enum DecodeError {
NotEnoughBytes,
InvalidFrameType(u8),
SecurityEnabled,
InvalidAddressMode(u8),
InvalidFrameVersion(u8),
InvalidSecurityLevel(u8),
InvalidKeyIdentifierMode(u8),
MissingSecurityCtx,
AuxSecHeaderAbsent,
InvalidValue,
}
Expand description
Signals an error that occured while decoding bytes
Variants§
NotEnoughBytes
Buffer does not contain enough bytes
InvalidFrameType(u8)
The frame type is invalid
SecurityEnabled
Security is enabled on the frame, and try_read
is called. Frame::try_read_and_unsecure
should be called instead.
InvalidAddressMode(u8)
The frame’s address mode is invalid
InvalidFrameVersion(u8)
The frame’s version is invalid or not supported
InvalidSecurityLevel(u8)
The auxiliary security header’s security level is invalid
InvalidKeyIdentifierMode(u8)
The auxiliary security header’s key identifier mode is invalid
MissingSecurityCtx
Security is enabled, but no Securty Context is provided
AuxSecHeaderAbsent
Security is enabled, but no Auxiliary Security Header is present
InvalidValue
The data stream contains an invalid value
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
Source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
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 DecodeError
impl Debug for DecodeError
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
Source§impl Hash for DecodeError
impl Hash for DecodeError
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
impl Copy for DecodeError
impl Eq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
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