pub enum PlanError {
NoDataRates,
Rx1RowCount {
rows: usize,
expected: usize,
dwell_limited: bool,
},
Rx1RowWidth {
row: usize,
width: usize,
expected: usize,
dwell_limited: bool,
},
TableLength {
length: usize,
expected: usize,
},
Rx2DataRate {
data_rate: u8,
defined: usize,
},
}Expand description
Why a plan could not be built.
Every variant describes a plan that would answer some question wrongly, so it is refused at the point it is assembled rather than at the question.
Variants§
NoDataRates
The plan defines no data rates, so it can answer nothing.
Rx1RowCount
The number of RX1 rows does not match the number of uplink data rates.
Fields
Rx1RowWidth
An RX1 row is not as wide as the plan’s highest offset allows.
Fields
TableLength
A table’s length does not match the data-rate table it indexes.
Fields
Rx2DataRate
The second receive window listens at a data rate the plan does not define.
Trait Implementations§
impl Eq for PlanError
Source§impl Error for PlanError
Available on crate feature std only.
impl Error for PlanError
Available on crate feature
std only.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()
impl StructuralPartialEq for PlanError
Auto Trait Implementations§
impl Freeze for PlanError
impl RefUnwindSafe for PlanError
impl Send for PlanError
impl Sync for PlanError
impl Unpin for PlanError
impl UnsafeUnpin for PlanError
impl UnwindSafe for PlanError
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