pub struct Daemon {
pub pause_group_on_failure: bool,
pub pause_all_on_failure: bool,
pub callback: Option<String>,
pub env_vars: HashMap<String, String>,
pub callback_log_lines: usize,
pub shell_command: Option<Vec<String>>,
}
Expand description
All settings which are used by the daemon
Fields§
§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.
env_vars: HashMap<String, String>
Environment variables that can be will be injected into all executed processes.
callback_log_lines: usize
The amount of log lines from stdout/stderr that are passed to the callback command.
shell_command: Option<Vec<String>>
The command that should be used for task and callback execution. The following are the only officially supported modi for Pueue.
Unix default:
vec!["sh", "-c", "{{ pueue_command_string }}"]
.
Windows default:
vec!["powershell", "-c", "[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8; {{ pueue_command_string }}"]
Trait Implementations§
source§impl<'de> Deserialize<'de> for Daemon
impl<'de> Deserialize<'de> for Daemon
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Daemon
impl PartialEq for Daemon
impl Eq for Daemon
impl StructuralPartialEq for Daemon
Auto Trait Implementations§
impl Freeze for Daemon
impl RefUnwindSafe for Daemon
impl Send for Daemon
impl Sync for Daemon
impl Unpin for Daemon
impl UnwindSafe for Daemon
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.