#[repr(u32)]pub enum MemoryErrorType {
Corrected = 0,
Uncorrected = 1,
}Variants§
Trait Implementations§
Source§impl Clone for MemoryErrorType
impl Clone for MemoryErrorType
Source§fn clone(&self) -> MemoryErrorType
fn clone(&self) -> MemoryErrorType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemoryErrorType
impl Debug for MemoryErrorType
Source§impl From<MemoryErrorType> for nvmlMemoryErrorType_t
impl From<MemoryErrorType> for nvmlMemoryErrorType_t
Source§fn from(value: MemoryErrorType) -> Self
fn from(value: MemoryErrorType) -> Self
Converts to this type from the input type.
Source§impl From<MemoryErrorType> for u32
impl From<MemoryErrorType> for u32
Source§fn from(enum_value: MemoryErrorType) -> Self
fn from(enum_value: MemoryErrorType) -> Self
Converts to this type from the input type.
Source§impl From<nvmlMemoryErrorType_enum> for MemoryErrorType
impl From<nvmlMemoryErrorType_enum> for MemoryErrorType
Source§fn from(value: nvmlMemoryErrorType_t) -> Self
fn from(value: nvmlMemoryErrorType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for MemoryErrorType
impl Hash for MemoryErrorType
Source§impl PartialEq for MemoryErrorType
impl PartialEq for MemoryErrorType
Source§fn eq(&self, other: &MemoryErrorType) -> bool
fn eq(&self, other: &MemoryErrorType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for MemoryErrorType
impl TryFrom<u32> for MemoryErrorType
Source§type Error = TryFromPrimitiveError<MemoryErrorType>
type Error = TryFromPrimitiveError<MemoryErrorType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for MemoryErrorType
impl TryFromPrimitive for MemoryErrorType
const NAME: &'static str = "MemoryErrorType"
type Primitive = u32
type Error = TryFromPrimitiveError<MemoryErrorType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for MemoryErrorType
impl Eq for MemoryErrorType
impl StructuralPartialEq for MemoryErrorType
Auto Trait Implementations§
impl Freeze for MemoryErrorType
impl RefUnwindSafe for MemoryErrorType
impl Send for MemoryErrorType
impl Sync for MemoryErrorType
impl Unpin for MemoryErrorType
impl UnsafeUnpin for MemoryErrorType
impl UnwindSafe for MemoryErrorType
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