Enum nvml_wrapper::enum_wrappers::device::EccCounter
source · pub enum EccCounter {
Volatile,
Aggregate,
}
Expand description
ECC counter types.
Note: Volatile counts are reset each time the driver loads. On Windows this is once per boot. On Linux this can be more frequent; the driver unloads when no active clients exist. If persistence mode is enabled or there is always a driver client active (such as X11), then Linux also sees per-boot behavior. If not, volatile counts are reset each time a compute app is run.
Variants§
Volatile
Volatile counts are reset each time the driver loads.
Aggregate
Aggregate counts persist across reboots (i.e. for the lifetime of the device).
Implementations§
source§impl EccCounter
impl EccCounter
sourcepub fn as_c(&self) -> nvmlEccCounterType_enum
pub fn as_c(&self) -> nvmlEccCounterType_enum
Returns the C enum variant equivalent for the given Rust enum variant
Trait Implementations§
source§impl Clone for EccCounter
impl Clone for EccCounter
source§fn clone(&self) -> EccCounter
fn clone(&self) -> EccCounter
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 EccCounter
impl Debug for EccCounter
source§impl Hash for EccCounter
impl Hash for EccCounter
source§impl PartialEq for EccCounter
impl PartialEq for EccCounter
source§fn eq(&self, other: &EccCounter) -> bool
fn eq(&self, other: &EccCounter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for EccCounter
impl TryFrom<u32> for EccCounter
impl Eq for EccCounter
impl StructuralPartialEq for EccCounter
Auto Trait Implementations§
impl RefUnwindSafe for EccCounter
impl Send for EccCounter
impl Sync for EccCounter
impl Unpin for EccCounter
impl UnwindSafe for EccCounter
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