Enum wgpu::DeviceLostReason
#[repr(u8)]pub enum DeviceLostReason {
Unknown = 0,
Destroyed = 1,
}
Expand description
Reason for “lose the device”.
Corresponds to WebGPU GPUDeviceLostReason
.
Variants§
Trait Implementations§
§impl Clone for DeviceLostReason
impl Clone for DeviceLostReason
§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 more§impl Debug for DeviceLostReason
impl Debug for DeviceLostReason
§impl<'de> Deserialize<'de> for DeviceLostReason
impl<'de> Deserialize<'de> for DeviceLostReason
§fn deserialize<__D>(
__deserializer: __D
) -> Result<DeviceLostReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DeviceLostReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for DeviceLostReason
impl PartialEq for DeviceLostReason
§fn eq(&self, other: &DeviceLostReason) -> bool
fn eq(&self, other: &DeviceLostReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for DeviceLostReason
impl Serialize for DeviceLostReason
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for DeviceLostReason
impl Eq for DeviceLostReason
impl StructuralEq for DeviceLostReason
impl StructuralPartialEq 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more