pub enum NetworkError {
NotLora,
Frame(LorawanError),
UnknownDevice,
Replayed {
dev_addr: u32,
fcnt: u32,
},
CounterGap {
dev_addr: u32,
seen: u32,
carried: u32,
},
UnknownDataRate,
NoWindow,
NoSession {
dev_addr: u32,
},
}Expand description
What can go wrong admitting or reading a forwarded packet.
Variants§
NotLora
The packet was not LoRa, so it carries no LoRaWAN frame here.
Frame(LorawanError)
The frame did not parse, verify, or decrypt.
UnknownDevice
A join request that no registered key verifies.
Replayed
A frame at a counter already seen, which is a replay.
CounterGap
A frame further ahead of the counter last seen than MAX_FCNT_GAP allows.
Fields
UnknownDataRate
The plan names no data rate for the settings the packet arrived at, so the rate the first window answers at cannot be worked out.
NoWindow
No first receive window exists for the packet: its frequency is not a channel the plan defines, or the plan names no downlink rate at that offset.
NoSession
A downlink for an address this network holds no session for.
Trait Implementations§
Source§impl Clone for NetworkError
impl Clone for NetworkError
Source§fn clone(&self) -> NetworkError
fn clone(&self) -> NetworkError
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 moreSource§impl Debug for NetworkError
impl Debug for NetworkError
Source§impl Display for NetworkError
impl Display for NetworkError
impl Eq for NetworkError
Source§impl Error for NetworkError
impl Error for NetworkError
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 NetworkError
impl PartialEq for NetworkError
Source§fn eq(&self, other: &NetworkError) -> bool
fn eq(&self, other: &NetworkError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkError
Auto Trait Implementations§
impl Freeze for NetworkError
impl RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl UnsafeUnpin for NetworkError
impl UnwindSafe for NetworkError
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