pub enum HostError {
NoChannel,
Timeout,
Stall,
Transaction,
Disconnected,
Overflow,
Malformed,
Protocol,
Unsupported,
}Expand description
What went wrong on the host side.
Variants§
NoChannel
Every host channel is in use.
Timeout
The device did not answer within the retry budget.
Stall
The endpoint answered with a STALL handshake.
Transaction
A transaction kept failing (CRC, bit stuff, false EOP) and the retries were used up.
Disconnected
Nothing is attached to the port, or the device went away.
Overflow
The buffer is too small for the reply or larger than a packet of the endpoint.
Malformed
A descriptor or a reply does not follow the USB grammar.
Protocol
The device answered something the protocol does not allow here.
Unsupported
The controller cannot do what was asked (isochronous endpoints, for example).
Trait Implementations§
impl Copy for HostError
impl Eq for HostError
impl StructuralPartialEq for HostError
Auto Trait Implementations§
impl Forget for HostError
impl Freeze for HostError
impl Move for HostError
impl RefUnwindSafe for HostError
impl Send for HostError
impl Sync for HostError
impl Unpin for HostError
impl UnsafeUnpin for HostError
impl UnwindSafe for HostError
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