Enum wgpu::DeviceLostReason
source · #[repr(u8)]pub enum DeviceLostReason {
Unknown = 0,
Destroyed = 1,
}
Expand description
Reason for “lose the device”.
Corresponds to WebGPU GPUDeviceLostReason
.
Variants§
Trait Implementations§
source§impl Clone for DeviceLostReason
impl Clone for DeviceLostReason
source§fn clone(&self) -> DeviceLostReason
fn clone(&self) -> DeviceLostReason
Returns a copy 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 DeviceLostReason
impl Debug for DeviceLostReason
impl Copy for DeviceLostReason
Auto Trait Implementations§
impl RefUnwindSafe for DeviceLostReason
impl Send for DeviceLostReason
impl Sync for DeviceLostReason
impl Unpin for DeviceLostReason
impl UnwindSafe for DeviceLostReason
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