pub struct DeviceLoss {
pub reason: DeviceLossReason,
pub message: String,
}Expand description
The recorded cause of a device loss.
Fields§
§reason: DeviceLossReasonClassified reason.
message: StringBackend-supplied detail, possibly empty.
Implementations§
Source§impl DeviceLoss
impl DeviceLoss
Sourcepub const fn recoverable(&self) -> bool
pub const fn recoverable(&self) -> bool
Whether opening a fresh device and rebuilding every resource from the scene is expected to succeed.
A device the application destroyed is gone by intent; any other loss leaves the adapter available to open again.
Trait Implementations§
Source§impl Clone for DeviceLoss
impl Clone for DeviceLoss
Source§impl Debug for DeviceLoss
impl Debug for DeviceLoss
impl Eq for DeviceLoss
Source§impl PartialEq for DeviceLoss
impl PartialEq for DeviceLoss
impl StructuralPartialEq for DeviceLoss
Auto Trait Implementations§
impl Freeze for DeviceLoss
impl RefUnwindSafe for DeviceLoss
impl Send for DeviceLoss
impl Sync for DeviceLoss
impl Unpin for DeviceLoss
impl UnsafeUnpin for DeviceLoss
impl UnwindSafe for DeviceLoss
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