pub enum GetPropertyError {
Win32(Win32Error),
UnexpectedType(VARTYPE),
}Expand description
Describes an error that occurred while retrieving a property from a device.
Variants§
Win32(Win32Error)
A Win32 error occurred.
UnexpectedType(VARTYPE)
The returned value was not the expected type.
Trait Implementations§
Source§impl Debug for GetPropertyError
impl Debug for GetPropertyError
Source§impl Display for GetPropertyError
impl Display for GetPropertyError
Source§impl Error for GetPropertyError
impl Error for GetPropertyError
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 GetPropertyError
impl From<Win32Error> for GetPropertyError
Source§fn from(error: Win32Error) -> Self
fn from(error: Win32Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetPropertyError
impl RefUnwindSafe for GetPropertyError
impl Send for GetPropertyError
impl Sync for GetPropertyError
impl Unpin for GetPropertyError
impl UnwindSafe for GetPropertyError
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