pub enum CdcAcmError {
Transfer(ChannelError),
NoInterface,
NoChannel,
}Expand description
CDC ACM host class driver error.
Variants§
Transfer(ChannelError)
Transfer error.
NoInterface
No matching CDC ACM interface found in the device.
NoChannel
Failed to allocate a channel.
Trait Implementations§
Source§impl Debug for CdcAcmError
impl Debug for CdcAcmError
Source§impl Display for CdcAcmError
impl Display for CdcAcmError
Source§impl Error for CdcAcmError
impl Error for CdcAcmError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Format for CdcAcmErrorwhere
ChannelError: Format,
impl Format for CdcAcmErrorwhere
ChannelError: Format,
Source§impl From<ChannelError> for CdcAcmError
impl From<ChannelError> for CdcAcmError
Source§fn from(e: ChannelError) -> Self
fn from(e: ChannelError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CdcAcmError
impl RefUnwindSafe for CdcAcmError
impl Send for CdcAcmError
impl Sync for CdcAcmError
impl Unpin for CdcAcmError
impl UnwindSafe for CdcAcmError
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