Enum ieee802154::mac::frame::EncodeError
source · [−]pub enum EncodeError {
WriteError,
MissingSecurityCtx,
DisallowedPanIdCompress,
UnknownError,
}
Expand description
Errors that can occur while securing or unsecuring a frame
Variants
WriteError
Something went wrong while writing a frame’s bytes to the destination
MissingSecurityCtx
Security is enabled but no security context is specified
DisallowedPanIdCompress
The pan_id_compress
flag is set, but either the destination address
or source address is not present.
UnknownError
Something went wrong, but it is unclear what/how it did
Trait Implementations
sourceimpl Clone for EncodeError
impl Clone for EncodeError
sourcefn clone(&self) -> EncodeError
fn clone(&self) -> EncodeError
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 EncodeError
impl Debug for EncodeError
sourceimpl From<EncodeError> for Error
impl From<EncodeError> for Error
sourcefn from(e: EncodeError) -> Self
fn from(e: EncodeError) -> Self
Converts to this type from the input type.
sourceimpl Hash for EncodeError
impl Hash for EncodeError
sourceimpl PartialEq<EncodeError> for EncodeError
impl PartialEq<EncodeError> for EncodeError
sourcefn eq(&self, other: &EncodeError) -> bool
fn eq(&self, other: &EncodeError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for EncodeError
impl Eq for EncodeError
impl StructuralEq for EncodeError
impl StructuralPartialEq for EncodeError
Auto Trait Implementations
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnwindSafe for EncodeError
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