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

Formats the value using the given formatter. Read more

Construct FieldValueSample from the corresponding C struct.

Errors
  • UnexpectedVariant, for which you can read the docs for

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.