#[non_exhaustive]pub enum ThreadDatasetError {
Empty,
TooLarge(usize),
Malformed,
NoExtPanId,
}Expand description
Errors produced while validating a Thread operational dataset.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
The dataset was empty.
TooLarge(usize)
The dataset exceeded the Thread spec’s maximum length (254 bytes). Carries the actual (rejected) length.
Malformed
The bytes are not well-formed Thread TLVs — a TLV’s declared
length overran the remaining buffer.
NoExtPanId
No Extended PAN ID TLV (type 0x02, length 8) was present.
Trait Implementations§
Source§impl Debug for ThreadDatasetError
impl Debug for ThreadDatasetError
Source§impl Display for ThreadDatasetError
impl Display for ThreadDatasetError
Source§impl Error for ThreadDatasetError
impl Error for ThreadDatasetError
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()
Auto Trait Implementations§
impl Freeze for ThreadDatasetError
impl RefUnwindSafe for ThreadDatasetError
impl Send for ThreadDatasetError
impl Sync for ThreadDatasetError
impl Unpin for ThreadDatasetError
impl UnsafeUnpin for ThreadDatasetError
impl UnwindSafe for ThreadDatasetError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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