[][src]Struct i3status_rs::blocks::toggle::Toggle

pub struct Toggle {
    id: usize,
    text: TextWidget,
    command_on: String,
    command_off: String,
    command_state: String,
    icon_on: String,
    icon_off: String,
    update_interval: Option<Duration>,
    toggled: bool,
}

Fields

id: usizetext: TextWidgetcommand_on: Stringcommand_off: Stringcommand_state: Stringicon_on: Stringicon_off: Stringupdate_interval: Option<Duration>toggled: bool

Trait Implementations

impl Block for Toggle[src]

impl ConfigBlock for Toggle[src]

type Config = ToggleConfig

Auto Trait Implementations

impl !RefUnwindSafe for Toggle[src]

impl !Send for Toggle[src]

impl !Sync for Toggle[src]

impl Unpin for Toggle[src]

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