pub enum DeviceError {
UnusableDevice,
NoDefaultDevice,
NoParentDevice,
}
Expand description
An error related to a Device.
Variants§
Trait Implementations§
Source§impl Clone for DeviceError
impl Clone for DeviceError
Source§fn clone(&self) -> DeviceError
fn clone(&self) -> DeviceError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeviceError
impl Debug for DeviceError
Source§impl Display for DeviceError
impl Display for DeviceError
Source§impl Fail for DeviceError
impl Fail for DeviceError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<DeviceError> for Error
impl From<DeviceError> for Error
Source§fn from(err: DeviceError) -> Error
fn from(err: DeviceError) -> Error
Converts to this type from the input type.
Source§impl PartialEq for DeviceError
impl PartialEq for DeviceError
impl Eq for DeviceError
impl StructuralPartialEq for DeviceError
Auto Trait Implementations§
impl Freeze for DeviceError
impl RefUnwindSafe for DeviceError
impl Send for DeviceError
impl Sync for DeviceError
impl Unpin for DeviceError
impl UnwindSafe for DeviceError
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