Struct pueue_lib::settings::Daemon[][src]

pub struct Daemon {
    pub default_parallel_tasks: usize,
    pub pause_group_on_failure: bool,
    pub pause_all_on_failure: bool,
    pub callback: Option<String>,
    pub groups: BTreeMap<String, usize>,
}

All settings which are used by the daemon

Fields

default_parallel_tasks: usize

How many parallel tasks a group should have by default

pause_group_on_failure: bool

Whether a group should be paused as soon as a single task fails

pause_all_on_failure: bool

Whether the daemon (and all groups) should be paused as soon as a single task fails

callback: Option<String>

The callback that's called whenever a task finishes.

groups: BTreeMap<String, usize>

This shouldn't be manipulated manually if the daemon is running. This represents all known groups and their amount of parallel tasks.

Trait Implementations

impl Clone for Daemon[src]

impl Debug for Daemon[src]

impl<'de> Deserialize<'de> for Daemon[src]

impl Serialize for Daemon[src]

Auto Trait Implementations

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,