[][src]Struct nvml_wrapper::struct_wrappers::device::Utilization

pub struct Utilization {
    pub gpu: u32,
    pub memory: u32,
}

Utilization information for a device. Each sample period may be between 1 second and 1/6 second, depending on the product being queried.

Fields

gpu: u32

Percent of time over the past sample period during which one or more kernels was executing on the GPU.

memory: u32

Percent of time over the past sample period during which global (device) memory was being read or written to.

Trait Implementations

impl Clone for Utilization[src]

impl Debug for Utilization[src]

impl Eq for Utilization[src]

impl From<nvmlUtilization_st> for Utilization[src]

impl Hash for Utilization[src]

impl PartialEq<Utilization> for Utilization[src]

impl StructuralEq for Utilization[src]

impl StructuralPartialEq for Utilization[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.