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 callback_log_lines: usize,
pub groups: BTreeMap<String, usize>,
}Expand description
All settings which are used by the daemon
Fields
default_parallel_tasks: usizeHow many parallel tasks a group should have by default
pause_group_on_failure: boolWhether a group should be paused as soon as a single task fails
pause_all_on_failure: boolWhether 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.
callback_log_lines: usizeThe amount of log lines from stdout/stderr that are passed to the callback command.
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<'de> Deserialize<'de> for Daemon[src]
impl<'de> Deserialize<'de> for Daemon[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Daemon
impl Send for Daemon
impl Sync for Daemon
impl Unpin for Daemon
impl UnwindSafe for Daemon
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,