Struct nvml_wrapper::structs::device::UtilizationInfo
source · pub struct UtilizationInfo {
pub utilization: u32,
pub sampling_period: u32,
}
Expand description
Returned from Device.decoder_utilization()
and
Device.encoder_utilization()
.
Fields§
§utilization: u32
§sampling_period: u32
Sampling period in μs.
Trait Implementations§
source§impl Clone for UtilizationInfo
impl Clone for UtilizationInfo
source§fn clone(&self) -> UtilizationInfo
fn clone(&self) -> UtilizationInfo
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 UtilizationInfo
impl Debug for UtilizationInfo
source§impl Hash for UtilizationInfo
impl Hash for UtilizationInfo
source§impl PartialEq for UtilizationInfo
impl PartialEq for UtilizationInfo
source§fn eq(&self, other: &UtilizationInfo) -> bool
fn eq(&self, other: &UtilizationInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UtilizationInfo
impl StructuralPartialEq for UtilizationInfo
Auto Trait Implementations§
impl RefUnwindSafe for UtilizationInfo
impl Send for UtilizationInfo
impl Sync for UtilizationInfo
impl Unpin for UtilizationInfo
impl UnwindSafe for UtilizationInfo
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