[][src]Struct i3status_rs::blocks::pomodoro::Pomodoro

pub struct Pomodoro {
    id: usize,
    time: TextWidget,
    state: State,
    length: Duration,
    break_length: Duration,
    update_interval: Duration,
    message: String,
    break_message: String,
    count: usize,
    use_nag: bool,
    nag_path: PathBuf,
}

Fields

id: usizetime: TextWidgetstate: Statelength: Durationbreak_length: Durationupdate_interval: Durationmessage: Stringbreak_message: Stringcount: usizeuse_nag: boolnag_path: PathBuf

Implementations

impl Pomodoro[src]

fn set_text(&mut self)[src]

fn nag(&self, message: &str, level: &str)[src]

Trait Implementations

impl Block for Pomodoro[src]

impl ConfigBlock for Pomodoro[src]

type Config = PomodoroConfig

Auto Trait Implementations

impl !RefUnwindSafe for Pomodoro[src]

impl !Send for Pomodoro[src]

impl !Sync for Pomodoro[src]

impl Unpin for Pomodoro[src]

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