pub enum DeviceError {
Show 16 variants
TooManyChannels {
max: usize,
},
NoCredentials,
NotJoined,
Busy,
NothingPending,
Wait {
until_us: u64,
},
NoChannel,
DataRate(u8),
PayloadTooLong {
max: usize,
},
CounterExhausted,
Frame(LorawanError),
Foreign,
Replayed,
CounterGap,
Refused,
State(StateError),
}Expand description
Why a device could not do what it was asked.
Variants§
TooManyChannels
The plan defines more channels than a device keeps.
Fields
max: usizeThe most a device keeps, MAX_CHANNELS.
NoCredentials
A device activated by personalization has nothing to join with.
NotJoined
The device has not joined.
Busy
A transmission is still waiting on its receive windows.
NothingPending
There is no transmission waiting on its windows or due to repeat.
Wait
The air is not free until this time, in the caller’s microseconds.
NoChannel
No enabled channel carries the data rate, and restoring the defaults did not help.
DataRate(u8)
The data rate is not a LoRa one this device can send or hear.
PayloadTooLong
The payload does not fit a frame at the current data rate.
CounterExhausted
The uplink frame counter has reached its end, and the device has to join again.
Frame(LorawanError)
The frame did not decode.
Foreign
The frame is addressed to another device.
Replayed
The frame repeats or precedes the last downlink the device accepted.
CounterGap
The frame is further ahead of the last downlink than LoRaWAN 1.0.3 lets a device follow.
Refused
A join accept carries settings the region does not allow, which RP002-1.0.5 has a device ignore.
State(StateError)
A saved state could not be resumed.
Trait Implementations§
Source§impl Clone for DeviceError
impl Clone for DeviceError
Source§fn clone(&self) -> DeviceError
fn clone(&self) -> DeviceError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DeviceError
Source§impl Debug for DeviceError
impl Debug for DeviceError
Source§impl Display for DeviceError
impl Display for DeviceError
impl Eq for DeviceError
Source§impl Error for DeviceError
impl Error for DeviceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()