pub enum ChannelError {
BufferOverflow,
BadResponse,
Canceled,
Stall,
Timeout,
Disconnected,
}Expand description
Errors returned by [ChannelOut::write] and [ChannelIn::read]
Variants§
BufferOverflow
The packet is too long to fit in the buffer.
BadResponse
Response from device/bus was not interpretable (Crc, Babble)
Canceled
Transaction was canceled
Stall
The device endpoint is stalled.
Timeout
Device did not respond in time
Disconnected
Device disconnected
Trait Implementations§
Source§impl Clone for ChannelError
impl Clone for ChannelError
Source§fn clone(&self) -> ChannelError
fn clone(&self) -> ChannelError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelError
impl Debug for ChannelError
Source§impl Format for ChannelError
impl Format for ChannelError
Source§impl From<ChannelError> for HostError
impl From<ChannelError> for HostError
Source§fn from(value: ChannelError) -> Self
fn from(value: ChannelError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChannelError
impl PartialEq for ChannelError
impl Copy for ChannelError
impl Eq for ChannelError
impl StructuralPartialEq for ChannelError
Auto Trait Implementations§
impl Freeze for ChannelError
impl RefUnwindSafe for ChannelError
impl Send for ChannelError
impl Sync for ChannelError
impl Unpin for ChannelError
impl UnwindSafe for ChannelError
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