Enum nvml_wrapper::enum_wrappers::device::RetirementCause
source · pub enum RetirementCause {
MultipleSingleBitEccErrors,
DoubleBitEccError,
}
Expand description
Causes for page retirement.
Variants§
MultipleSingleBitEccErrors
Page was retired due to multiple single bit ECC errors.
DoubleBitEccError
Page was retired due to a single double bit ECC error.
Implementations§
source§impl RetirementCause
impl RetirementCause
sourcepub fn as_c(&self) -> nvmlPageRetirementCause_enum
pub fn as_c(&self) -> nvmlPageRetirementCause_enum
Returns the C enum variant equivalent for the given Rust enum variant
Trait Implementations§
source§impl Clone for RetirementCause
impl Clone for RetirementCause
source§fn clone(&self) -> RetirementCause
fn clone(&self) -> RetirementCause
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 RetirementCause
impl Debug for RetirementCause
source§impl Hash for RetirementCause
impl Hash for RetirementCause
source§impl PartialEq for RetirementCause
impl PartialEq for RetirementCause
source§fn eq(&self, other: &RetirementCause) -> bool
fn eq(&self, other: &RetirementCause) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for RetirementCause
impl TryFrom<u32> for RetirementCause
impl Eq for RetirementCause
impl StructuralPartialEq for RetirementCause
Auto Trait Implementations§
impl RefUnwindSafe for RetirementCause
impl Send for RetirementCause
impl Sync for RetirementCause
impl Unpin for RetirementCause
impl UnwindSafe for RetirementCause
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