#[repr(u8)]pub enum DeviceLostReason {
    Unknown = 0,
    Destroyed = 1,
}Expand description
Corresponds to a GPUDeviceLostReason.
Variants§
Unknown = 0
The device was lost for an unspecific reason, including driver errors.
Destroyed = 1
The device’s destroy method was called.
Trait Implementations§
Source§impl Clone for DeviceLostReason
 
impl Clone for DeviceLostReason
Source§fn clone(&self) -> DeviceLostReason
 
fn clone(&self) -> DeviceLostReason
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 DeviceLostReason
 
impl Debug for DeviceLostReason
Source§impl<'de> Deserialize<'de> for DeviceLostReason
 
impl<'de> Deserialize<'de> for DeviceLostReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeviceLostReason
 
impl PartialEq for DeviceLostReason
Source§impl Serialize for DeviceLostReason
 
impl Serialize for DeviceLostReason
impl Copy for DeviceLostReason
impl Eq for DeviceLostReason
impl StructuralPartialEq for DeviceLostReason
Auto Trait Implementations§
impl Freeze for DeviceLostReason
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