[][src]Struct i3status_rs::blocks::pacman::PacmanConfig

pub struct PacmanConfig {
    pub interval: Duration,
    pub format: String,
    pub format_singular: String,
    pub format_up_to_date: String,
    pub warning_updates_regex: Option<String>,
    pub critical_updates_regex: Option<String>,
    pub aur_command: Option<String>,
    pub hide_when_uptodate: bool,
}

Fields

interval: Duration

Update interval in seconds

format: String

Format override

format_singular: String

Alternative format override for when exactly 1 update is available

format_up_to_date: String

Alternative format override for when no updates are available

warning_updates_regex: Option<String>

Indicate a warning state for the block if any pending update match the following regex. Default behaviour is that no package updates are deemed warning

critical_updates_regex: Option<String>

Indicate a critical state for the block if any pending update match the following regex. Default behaviour is that no package updates are deemed critical

aur_command: Option<String>

Optional AUR command, listing available updates

hide_when_uptodate: bool

Implementations

impl PacmanConfig[src]

fn watched(
    format: &str,
    format_singular: &str,
    format_up_to_date: &str,
    aur_command: Option<String>
) -> Result<Watched, Error>
[src]

Trait Implementations

impl Clone for PacmanConfig[src]

impl Debug for PacmanConfig[src]

impl Default for PacmanConfig[src]

impl<'de> Deserialize<'de> for PacmanConfig where
    PacmanConfig: Default
[src]

Auto Trait Implementations

impl RefUnwindSafe for PacmanConfig[src]

impl Send for PacmanConfig[src]

impl Sync for PacmanConfig[src]

impl Unpin for PacmanConfig[src]

impl UnwindSafe for PacmanConfig[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.