pub enum HidIoParseError {
Show 17 variants BufferNotReady, BufferDataTooSmall(usize), 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,
}
Expand description

HID-IO Parse Error

Remarks

thrown when there’s an issue processing byte stream.

Variants§

§

BufferNotReady

§

BufferDataTooSmall(usize)

§

InvalidContinuedIdByte(u8)

§

InvalidHidIoCommandId(u32)

§

InvalidPacketIdWidth(u8)

§

InvalidPacketType(u8)

§

MissingContinuedIdByte

§

MissingPacketIdWidthByte

§

MissingPacketTypeByte

§

MissingPayloadLengthByte

§

NotEnoughActualBytesPacketId

Fields

§len: usize
§id_width: usize
§

NotEnoughPossibleBytesPacketId

Fields

§len: u32
§id_width: usize
§

PayloadAddFailed(usize)

§

SerializationError

§

SerializationFailedResultTooSmall(usize)

§

VecAddFailed

§

VecResizeFailed

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.