pub struct FieldSample {
pub field: FieldId,
pub scope_id: u32,
pub timestamp: i64,
pub latency_usec: i64,
pub result: Result<FieldValue>,
}Fields§
§field: FieldId§scope_id: u32§timestamp: i64§latency_usec: i64§result: Result<FieldValue>Implementations§
Source§impl FieldSample
impl FieldSample
pub fn from_raw(value: nvmlFieldValue_t) -> Self
Trait Implementations§
Source§impl Clone for FieldSample
impl Clone for FieldSample
Source§fn clone(&self) -> FieldSample
fn clone(&self) -> FieldSample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FieldSample
impl Debug for FieldSample
Source§impl PartialEq for FieldSample
impl PartialEq for FieldSample
Source§fn eq(&self, other: &FieldSample) -> bool
fn eq(&self, other: &FieldSample) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldSample
Auto Trait Implementations§
impl Freeze for FieldSample
impl RefUnwindSafe for FieldSample
impl Send for FieldSample
impl Sync for FieldSample
impl Unpin for FieldSample
impl UnsafeUnpin for FieldSample
impl UnwindSafe for FieldSample
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