[][src]Enum usb_device::UsbError

[]
pub enum UsbError {
    WouldBlock,
    ParseError,
    BufferOverflow,
    EndpointOverflow,
    EndpointMemoryOverflow,
    InvalidEndpoint,
    Unsupported,
    InvalidState,
}
[]

A USB stack error.

Variants

WouldBlock
[]

An operation would block because the device is currently busy or there is no data available.

ParseError
[]

Parsing failed due to invalid input.

BufferOverflow
[]

A buffer too short for the data to read was passed, or provided data cannot fit within length constraints.

EndpointOverflow
[]

Classes attempted to allocate more endpoints than the peripheral supports.

EndpointMemoryOverflow
[]

Classes attempted to allocate more packet buffer memory than the peripheral supports. This can be caused by either a single class trying to allocate a packet buffer larger than the peripheral supports per endpoint, or multiple allocated endpoints together using more memory than the peripheral has available for the buffers.

InvalidEndpoint
[]

The endpoint address is invalid or already used.

Unsupported
[]

Operation is not supported by device or configuration.

InvalidState
[]

Operation is not valid in the current state of the object.

Trait Implementations

impl Debug for UsbError[src][+]

Auto Trait Implementations

impl Send for UsbError

impl Sync for UsbError

impl Unpin for UsbError

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, 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.