Enum hid_io_protocol::HidIoParseError[][src]

pub enum HidIoParseError {
    InvalidContinuedIdByte(u8),
    InvalidHidIoCommandId(u32),
    InvalidPacketIdWidth(u8),
    InvalidPacketType(u8),
    MissingContinuedIdByte,
    MissingPacketIdWidthByte,
    MissingPacketTypeByte,
    MissingPayloadLengthByte,
    NotEnoughActualBytesPacketId {
        len: usize,
        id_width: usize,
    },
    NotEnoughPossibleBytesPacketId {
        len: u32,
        id_width: usize,
    },
    PayloadAddFailed(usize),
    SerializationError,
    SerializationFailedResultTooSmall(usize),
    VecAddFailed,
    VecResizeFailed,
}

HID-IO Parse Error

Remarks

thrown when there’s an issue processing byte stream.

Variants

InvalidContinuedIdByte(u8)
InvalidHidIoCommandId(u32)
InvalidPacketIdWidth(u8)
InvalidPacketType(u8)
MissingContinuedIdByte
MissingPacketIdWidthByte
MissingPacketTypeByte
MissingPayloadLengthByte
NotEnoughActualBytesPacketId

Fields of NotEnoughActualBytesPacketId

len: usizeid_width: usize
NotEnoughPossibleBytesPacketId

Fields of NotEnoughPossibleBytesPacketId

len: u32id_width: usize
PayloadAddFailed(usize)
SerializationError
SerializationFailedResultTooSmall(usize)
VecAddFailed
VecResizeFailed

Trait Implementations

impl Debug for HidIoParseError[src]

Auto Trait Implementations

impl RefUnwindSafe for HidIoParseError

impl Send for HidIoParseError

impl Sync for HidIoParseError

impl Unpin for HidIoParseError

impl UnwindSafe for HidIoParseError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.