pub enum SoundCoreError {
Win32(Win32Error),
NotSupported,
}Expand description
Describes an error that occurred while acting on Creative’s SoundCore API.
Variants§
Win32(Win32Error)
Some Win32 error occurred.
NotSupported
The specified device does not support implement the SoundCore API.
Trait Implementations§
Source§impl Debug for SoundCoreError
impl Debug for SoundCoreError
Source§impl Display for SoundCoreError
impl Display for SoundCoreError
Source§impl Error for SoundCoreError
impl Error for SoundCoreError
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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 From<GetPropertyError> for SoundCoreError
impl From<GetPropertyError> for SoundCoreError
Source§fn from(err: GetPropertyError) -> SoundCoreError
fn from(err: GetPropertyError) -> SoundCoreError
Converts to this type from the input type.
Source§impl From<Win32Error> for SoundCoreError
impl From<Win32Error> for SoundCoreError
Source§fn from(err: Win32Error) -> SoundCoreError
fn from(err: Win32Error) -> SoundCoreError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SoundCoreError
impl RefUnwindSafe for SoundCoreError
impl Send for SoundCoreError
impl Sync for SoundCoreError
impl Unpin for SoundCoreError
impl UnwindSafe for SoundCoreError
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