pub enum HostError {
ChannelError(ChannelError),
RequestFailed,
InvalidDescriptor,
OutOfSlots,
OutOfChannels,
NoSuchDevice,
InsufficientMemory,
Other(&'static str),
}Expand description
Indicates type of error of Host interface
Variants§
ChannelError(ChannelError)
A channel-level transfer error occurred.
RequestFailed
The control request was not acknowledged by the device.
InvalidDescriptor
A descriptor returned by the device could not be parsed.
OutOfSlots
No free device slots available.
OutOfChannels
No free host channels available.
NoSuchDevice
The addressed device does not exist.
InsufficientMemory
Insufficient memory for the requested operation.
Other(&'static str)
An unspecified error with a static description.
Trait Implementations§
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.
impl Copy for HostError
impl Eq for HostError
impl StructuralPartialEq for HostError
Auto Trait Implementations§
impl Freeze for HostError
impl RefUnwindSafe for HostError
impl Send for HostError
impl Sync for HostError
impl Unpin 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