Struct nvml_wrapper::struct_wrappers::device::FieldValueSample
source · pub struct FieldValueSample {
pub field: FieldId,
pub timestamp: i64,
pub latency: i64,
pub value: Result<SampleValue, NvmlError>,
}
Expand description
Struct that stores information returned from Device.field_values_for()
.
Fields§
§field: FieldId
The field that this sample is for.
timestamp: i64
This sample’s CPU timestamp in μs (Unix time).
latency: i64
How long this field value took to update within NVML, in μs.
This value may be averaged across several fields serviced by the same driver call.
value: Result<SampleValue, NvmlError>
The value of this sample.
Will be an error if retrieving this specific value failed.
Trait Implementations§
source§impl Debug for FieldValueSample
impl Debug for FieldValueSample
source§impl TryFrom<nvmlFieldValue_st> for FieldValueSample
impl TryFrom<nvmlFieldValue_st> for FieldValueSample
Auto Trait Implementations§
impl !RefUnwindSafe for FieldValueSample
impl Send for FieldValueSample
impl Sync for FieldValueSample
impl Unpin for FieldValueSample
impl !UnwindSafe for FieldValueSample
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