pub enum DecodeError {
Truncated {
message: u16,
},
WrongLength {
message: u16,
payload_bits: usize,
expected: usize,
},
TooManySatellites {
message: u16,
count: usize,
},
}Expand description
Why a well-framed payload could not be decoded.
Variants§
Truncated
The payload ended before the message’s own definition did.
WrongLength
The payload holds more than the message plus its padding to a byte boundary.
Fields
TooManySatellites
DF387 named more satellites than the message can hold.
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
impl Copy for DecodeError
Source§impl Debug for DecodeError
impl Debug for DecodeError
impl Eq for DecodeError
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnsafeUnpin for DecodeError
impl UnwindSafe for DecodeError
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