pub enum LorawanError {
PayloadTooLong,
FrameTooShort,
UnsupportedMType(u8),
MicMismatch,
FcntMismatch,
MalformedFrame,
}Expand description
What can go wrong building or reading a LoRaWAN frame.
Variants§
PayloadTooLong
A payload (or its frame options) is too large to fit a single frame.
FrameTooShort
A received frame is shorter than its fixed header and MIC require.
UnsupportedMType(u8)
A received frame’s message type is not one this crate decodes here.
MicMismatch
A received frame’s MIC does not match its contents, so it is forged or corrupt.
FcntMismatch
A received frame’s counter does not match the counter expected for it.
MalformedFrame
A received frame is structurally invalid in some other way.
Trait Implementations§
Source§impl Clone for LorawanError
impl Clone for LorawanError
Source§fn clone(&self) -> LorawanError
fn clone(&self) -> LorawanError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LorawanError
Source§impl Debug for LorawanError
impl Debug for LorawanError
Source§impl Display for LorawanError
impl Display for LorawanError
impl Eq for LorawanError
Source§impl Error for LorawanError
impl Error for LorawanError
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()
Source§impl PartialEq for LorawanError
impl PartialEq for LorawanError
Source§fn eq(&self, other: &LorawanError) -> bool
fn eq(&self, other: &LorawanError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LorawanError
Auto Trait Implementations§
impl Freeze for LorawanError
impl RefUnwindSafe for LorawanError
impl Send for LorawanError
impl Sync for LorawanError
impl Unpin for LorawanError
impl UnsafeUnpin for LorawanError
impl UnwindSafe for LorawanError
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