Struct nvml_wrapper::struct_wrappers::device::ViolationTime
source · pub struct ViolationTime {
pub reference_time: u64,
pub violation_time: u64,
}
Expand description
Performance policy violation status data.
Fields§
§reference_time: u64
Represents CPU timestamp in microseconds.
violation_time: u64
Violation time in nanoseconds.
Trait Implementations§
source§impl Clone for ViolationTime
impl Clone for ViolationTime
source§fn clone(&self) -> ViolationTime
fn clone(&self) -> ViolationTime
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 ViolationTime
impl Debug for ViolationTime
source§impl From<nvmlViolationTime_st> for ViolationTime
impl From<nvmlViolationTime_st> for ViolationTime
source§fn from(struct_: nvmlViolationTime_t) -> Self
fn from(struct_: nvmlViolationTime_t) -> Self
Converts to this type from the input type.
source§impl Hash for ViolationTime
impl Hash for ViolationTime
source§impl PartialEq for ViolationTime
impl PartialEq for ViolationTime
source§fn eq(&self, other: &ViolationTime) -> bool
fn eq(&self, other: &ViolationTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ViolationTime
impl StructuralPartialEq for ViolationTime
Auto Trait Implementations§
impl RefUnwindSafe for ViolationTime
impl Send for ViolationTime
impl Sync for ViolationTime
impl Unpin for ViolationTime
impl UnwindSafe for ViolationTime
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