Enum ieee802154::mac::frame::DecodeError
source · [−]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
sourceimpl Clone for DecodeError
impl Clone for DecodeError
sourcefn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DecodeError
impl Debug for DecodeError
sourceimpl From<DecodeError> for Error
impl From<DecodeError> for Error
sourcefn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl Hash for DecodeError
impl Hash for DecodeError
sourceimpl PartialEq<DecodeError> for DecodeError
impl PartialEq<DecodeError> for DecodeError
sourcefn eq(&self, other: &DecodeError) -> bool
fn eq(&self, other: &DecodeError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for DecodeError
impl Eq for DecodeError
impl StructuralEq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more