#[non_exhaustive]pub enum DeviceLossReason {
Destroyed,
Unknown,
}Expand description
Why the backend reported the device lost.
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.
Destroyed
The device was destroyed on purpose, by the application or on teardown.
Unknown
The driver, adapter or browser dropped the device: a reset, a removed adapter, a timeout or an unrecoverable fault.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceLossReason
impl Clone for DeviceLossReason
impl Copy for DeviceLossReason
Source§impl Debug for DeviceLossReason
impl Debug for DeviceLossReason
impl Eq for DeviceLossReason
Source§impl PartialEq for DeviceLossReason
impl PartialEq for DeviceLossReason
impl StructuralPartialEq for DeviceLossReason
Auto Trait Implementations§
impl Freeze for DeviceLossReason
impl RefUnwindSafe for DeviceLossReason
impl Send for DeviceLossReason
impl Sync for DeviceLossReason
impl Unpin for DeviceLossReason
impl UnsafeUnpin for DeviceLossReason
impl UnwindSafe for DeviceLossReason
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