pub enum ReadError {
BufferOverflow,
Disabled,
Sync(Range<usize>),
}
Expand description
Error when reading a HID report.
Variants§
BufferOverflow
The given buffer was too small to read the received report.
Disabled
The endpoint is disabled.
Sync(Range<usize>)
The report was only partially read. See HidReader::read
for details.
Trait Implementations§
Source§impl From<EndpointError> for ReadError
impl From<EndpointError> for ReadError
Source§fn from(val: EndpointError) -> Self
fn from(val: EndpointError) -> Self
Converts to this type from the input type.
impl Eq for ReadError
impl StructuralPartialEq for ReadError
Auto Trait Implementations§
impl Freeze for ReadError
impl RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnwindSafe for ReadError
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