pub enum MspDecodeError {
TooShort,
BadPreamble,
BadCrc {
expected: u8,
found: u8,
},
}Expand description
Why a byte buffer could not be decoded as a single complete MSP frame.
Variants§
TooShort
Fewer bytes than the smallest valid frame of its kind.
BadPreamble
The $M / $X preamble or the version byte was not recognized.
BadCrc
The trailing CRC did not match the computed CRC (corrupt frame).
Trait Implementations§
Source§impl Clone for MspDecodeError
impl Clone for MspDecodeError
Source§impl Debug for MspDecodeError
impl Debug for MspDecodeError
impl Eq for MspDecodeError
Source§impl PartialEq for MspDecodeError
impl PartialEq for MspDecodeError
impl StructuralPartialEq for MspDecodeError
Auto Trait Implementations§
impl Freeze for MspDecodeError
impl RefUnwindSafe for MspDecodeError
impl Send for MspDecodeError
impl Sync for MspDecodeError
impl Unpin for MspDecodeError
impl UnsafeUnpin for MspDecodeError
impl UnwindSafe for MspDecodeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.