[][src]Struct i3status_rs::blocks::xrandr::Xrandr

pub struct Xrandr {
    id: usize,
    text: TextWidget,
    update_interval: Duration,
    monitors: Vec<Monitor>,
    icons: bool,
    resolution: bool,
    step_width: u32,
    current_idx: usize,
    shared_config: SharedConfig,
}

Fields

id: usizetext: TextWidgetupdate_interval: Durationmonitors: Vec<Monitor>icons: boolresolution: boolstep_width: u32current_idx: usizeshared_config: SharedConfig

Implementations

impl Xrandr[src]

fn get_active_monitors() -> Result<Option<Vec<String>>, Error>[src]

fn get_monitor_metrics(
    monitor_names: &[String]
) -> Result<Option<Vec<Monitor>>, Error>
[src]

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

Trait Implementations

impl Block for Xrandr[src]

impl ConfigBlock for Xrandr[src]

type Config = XrandrConfig

Auto Trait Implementations

impl !RefUnwindSafe for Xrandr[src]

impl !Send for Xrandr[src]

impl !Sync for Xrandr[src]

impl Unpin for Xrandr[src]

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