[][src]Struct i3status_rs::blocks::nvidia_gpu::NvidiaGpuConfig

pub struct NvidiaGpuConfig {
    pub interval: Duration,
    pub label: Option<String>,
    pub gpu_id: u64,
    pub show_utilization: bool,
    pub show_memory: bool,
    pub show_temperature: bool,
    pub show_fan_speed: bool,
    pub show_clocks: bool,
    pub idle: u64,
    pub good: u64,
    pub info: u64,
    pub warning: u64,
}

Fields

interval: Duration

Update interval in seconds

label: Option<String>

Label to show instead of the default GPU name from nvidia-smi

gpu_id: u64

GPU id in system

show_utilization: bool

GPU utilization. In percent.

show_memory: bool

VRAM utilization.

show_temperature: bool

Core GPU temperature. In degrees C.

show_fan_speed: bool

Fan speed. In percents.

show_clocks: bool

GPU clocks. In percents.

idle: u64

Maximum temperature, below which state is set to idle

good: u64

Maximum temperature, below which state is set to good

info: u64

Maximum temperature, below which state is set to info

warning: u64

Maximum temperature, below which state is set to warning

Trait Implementations

impl Clone for NvidiaGpuConfig[src]

impl Debug for NvidiaGpuConfig[src]

impl Default for NvidiaGpuConfig[src]

impl<'de> Deserialize<'de> for NvidiaGpuConfig where
    NvidiaGpuConfig: Default
[src]

Auto Trait Implementations

impl RefUnwindSafe for NvidiaGpuConfig[src]

impl Send for NvidiaGpuConfig[src]

impl Sync for NvidiaGpuConfig[src]

impl Unpin for NvidiaGpuConfig[src]

impl UnwindSafe for NvidiaGpuConfig[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.