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
sourceimpl 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
sourceimpl Clone for EccCounter
impl Clone for EccCounter
sourcefn clone(&self) -> EccCounter
fn clone(&self) -> EccCounter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for EccCounter
impl Debug for EccCounter
sourceimpl Hash for EccCounter
impl Hash for EccCounter
sourceimpl PartialEq<EccCounter> for EccCounter
impl PartialEq<EccCounter> for EccCounter
sourceimpl TryFrom<u32> for EccCounter
impl TryFrom<u32> for EccCounter
impl Eq for EccCounter
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more