Enum embassy_usb::class::hid::ReadError
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)