#[non_exhaustive]pub enum MmcSubchannelError {
Cmd(MmcError),
InvalidResponse(String),
}Available on crate feature
mmc only.Expand description
error from a READ SUB-CHANNEL command
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cmd(MmcError)
operating system returned an error
InvalidResponse(String)
invalid response from mmc command: {0}
Trait Implementations§
Source§impl Debug for MmcSubchannelError
impl Debug for MmcSubchannelError
Source§impl Display for MmcSubchannelError
impl Display for MmcSubchannelError
Source§impl Error for MmcSubchannelError
impl Error for MmcSubchannelError
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 From<ContextError> for MmcSubchannelError
impl From<ContextError> for MmcSubchannelError
Source§fn from(err: ContextError) -> Self
fn from(err: ContextError) -> Self
Converts to this type from the input type.
Source§impl From<MmcError> for MmcSubchannelError
impl From<MmcError> for MmcSubchannelError
Source§impl From<MmcSubchannelError> for MmcAudioStatusError
impl From<MmcSubchannelError> for MmcAudioStatusError
Source§fn from(value: MmcSubchannelError) -> Self
fn from(value: MmcSubchannelError) -> Self
Converts to this type from the input type.
Source§impl<T: TryFromPrimitive> From<TryFromPrimitiveError<T>> for MmcSubchannelError
impl<T: TryFromPrimitive> From<TryFromPrimitiveError<T>> for MmcSubchannelError
Source§fn from(err: TryFromPrimitiveError<T>) -> Self
fn from(err: TryFromPrimitiveError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MmcSubchannelError
impl RefUnwindSafe for MmcSubchannelError
impl Send for MmcSubchannelError
impl Sync for MmcSubchannelError
impl Unpin for MmcSubchannelError
impl UnsafeUnpin for MmcSubchannelError
impl UnwindSafe for MmcSubchannelError
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