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

pub struct Net {
    id: usize,
    format: FormatTemplate,
    format_alt: Option<FormatTemplate>,
    output: TextWidget,
    ssid: Option<String>,
    signal_strength: u32,
    ip_addr: Option<String>,
    ipv6_addr: Option<String>,
    bitrate: Option<String>,
    speed_up: f64,
    speed_down: f64,
    graph_tx: String,
    graph_rx: String,
    update_interval: Duration,
    device: NetworkDevice,
    auto_device: bool,
    tx_buff: Vec<f64>,
    rx_buff: Vec<f64>,
    tx_bytes: u64,
    rx_bytes: u64,
    active: bool,
    exists: bool,
    hide_inactive: bool,
    hide_missing: bool,
    last_update: Instant,
    shared_config: SharedConfig,
}

Fields

id: usizeformat: FormatTemplateformat_alt: Option<FormatTemplate>output: TextWidgetssid: Option<String>signal_strength: u32ip_addr: Option<String>ipv6_addr: Option<String>bitrate: Option<String>speed_up: f64speed_down: f64graph_tx: Stringgraph_rx: Stringupdate_interval: Durationdevice: NetworkDeviceauto_device: booltx_buff: Vec<f64>rx_buff: Vec<f64>tx_bytes: u64rx_bytes: u64active: boolexists: boolhide_inactive: boolhide_missing: boollast_update: Instantshared_config: SharedConfig

Implementations

impl Net[src]

fn update_bitrate(&mut self) -> Result<(), Error>[src]

fn update_ssid(&mut self) -> Result<(), Error>[src]

fn update_signal_strength(&mut self) -> Result<(), Error>[src]

fn update_ip_addr(&mut self) -> Result<(), Error>[src]

fn update_tx_rx(&mut self) -> Result<(), Error>[src]

Trait Implementations

impl Block for Net[src]

impl ConfigBlock for Net[src]

type Config = NetConfig

Auto Trait Implementations

impl !RefUnwindSafe for Net[src]

impl !Send for Net[src]

impl !Sync for Net[src]

impl Unpin for Net[src]

impl UnwindSafe for Net[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> From<T> for T[src]

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

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.