[][src]Struct i3status_rs::blocks::net::NetConfig

pub struct NetConfig {
    pub interval: Duration,
    pub format: String,
    pub format_alt: Option<String>,
    pub device: Option<String>,
    pub hide_inactive: bool,
    pub hide_missing: bool,
}

Fields

interval: Duration

Update interval in seconds

format: Stringformat_alt: Option<String>device: Option<String>

Which interface in /sys/class/net/ to read from.

hide_inactive: bool

Whether to hide networks that are down/inactive completely.

hide_missing: bool

Whether to hide networks that are missing.

Trait Implementations

impl Clone for NetConfig[src]

impl Debug for NetConfig[src]

impl Default for NetConfig[src]

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

Auto Trait Implementations

impl RefUnwindSafe for NetConfig[src]

impl Send for NetConfig[src]

impl Sync for NetConfig[src]

impl Unpin for NetConfig[src]

impl UnwindSafe for NetConfig[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.