pub enum BinaryDecodeError {
Empty,
UnknownFrameKind(u8),
Truncated {
needed: usize,
available: usize,
},
InvalidBarrierState(u8),
InvalidCommandPriority(u8),
InvalidEventPriority(u8),
InvalidEventKind(u8),
TrailingBytes(usize),
}Expand description
Binary decode error.
Variants§
Empty
Input is empty.
UnknownFrameKind(u8)
Unknown frame kind byte.
Truncated
Frame ended before all fields were available.
InvalidBarrierState(u8)
Barrier state byte is invalid.
InvalidCommandPriority(u8)
Command priority byte is invalid.
InvalidEventPriority(u8)
Event priority byte is invalid.
InvalidEventKind(u8)
Event kind byte is invalid.
TrailingBytes(usize)
Trailing bytes were present after a complete frame.
Trait Implementations§
Source§impl Clone for BinaryDecodeError
impl Clone for BinaryDecodeError
Source§fn clone(&self) -> BinaryDecodeError
fn clone(&self) -> BinaryDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryDecodeError
impl Debug for BinaryDecodeError
Source§impl Display for BinaryDecodeError
impl Display for BinaryDecodeError
impl Eq for BinaryDecodeError
Source§impl Error for BinaryDecodeError
impl Error for BinaryDecodeError
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()
Source§impl PartialEq for BinaryDecodeError
impl PartialEq for BinaryDecodeError
impl StructuralPartialEq for BinaryDecodeError
Auto Trait Implementations§
impl Freeze for BinaryDecodeError
impl RefUnwindSafe for BinaryDecodeError
impl Send for BinaryDecodeError
impl Sync for BinaryDecodeError
impl Unpin for BinaryDecodeError
impl UnsafeUnpin for BinaryDecodeError
impl UnwindSafe for BinaryDecodeError
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