pub struct TaskDefaults {
pub stderr: bool,
pub stdin: bool,
pub stdout_msgtree: bool,
pub stderr_msgtree: bool,
pub auto_tree: bool,
}Expand description
Configuration for the task’s default behavior.
Maps to ClusterShell’s _task_default dictionary.
Fields§
§stderr: boolWhether to enable stderr separation (default: false).
stdin: boolWhether to enable stdin (default: true).
stdout_msgtree: boolWhether to record stdout into a MsgTree (default: true).
stderr_msgtree: boolWhether to record stderr into a MsgTree (default: true).
auto_tree: boolAuto tree mode (use tree topology when available; default: true,
matching upstream _TASK_DEFAULT["auto_tree"]).
Implementations§
Source§impl TaskDefaults
impl TaskDefaults
Sourcepub fn from_defaults(defaults: &Defaults) -> Self
pub fn from_defaults(defaults: &Defaults) -> Self
Create task defaults from a Defaults config.
Trait Implementations§
Source§impl Clone for TaskDefaults
impl Clone for TaskDefaults
Source§impl Debug for TaskDefaults
impl Debug for TaskDefaults
Auto Trait Implementations§
impl Freeze for TaskDefaults
impl RefUnwindSafe for TaskDefaults
impl Send for TaskDefaults
impl Sync for TaskDefaults
impl Unpin for TaskDefaults
impl UnsafeUnpin for TaskDefaults
impl UnwindSafe for TaskDefaults
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