Enum teensy4_bsp::usb::Error[][src]

pub enum Error {
    SetLogger,
    WrongInstance,
    NotConfigured,
    Io,
}
This is supported on crate feature usb-logging only.
Expand description

Indicate an error when preparing or using the USB stack

Variants

SetLogger

The error indicates that you’ve already set the logger, either from this interface or through another logging interface.

The init function may return this error.

WrongInstance

Incorrect USB instance; use the imrt_ral’s USB1 instance

The init or split functions may return this error.

NotConfigured

The USB device hasn’t been configured by the host

Try again after the host has a chance to configure the device. If you receive this repeatedly, you might not be connected to a USB host.

Any USB CDC I/O method may return this error.

Io

Arbitrary I/O error

Any USB CDC I/O method may return this error.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

Should always be Self

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.