[][src]Struct i3monkit::WidgetUpdate

pub struct WidgetUpdate {
    pub refresh_interval: Duration,
    pub data: Option<Block>,
}

An update of a widget.

This is used to return an widget update from the widget implementation to the widget framework

For some use cases, it's possible that we do not deliver any update, but requires the widget framework to call the widget again after some time. This can be done by passing the widget update with an empty data payload.

Fields

refresh_interval: Duration

Amount of time until the widget gets refresh

data: Option<Block>

Data payload to update, None indicates

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]