pub struct BashJobManager {
pub max_jobs: usize,
pub wait_on_exit: bool,
pub pids_var: String,
}Expand description
Background job tracker for bash scripts.
Fields§
§max_jobs: usizeMaximum number of parallel jobs.
wait_on_exit: boolWhether to wait for all jobs on exit.
pids_var: StringPID array variable name.
Implementations§
Source§impl BashJobManager
impl BashJobManager
Sourcepub fn with_pids_var(self, var: &str) -> Self
pub fn with_pids_var(self, var: &str) -> Self
Set the PID array variable name.
Sourcepub fn emit_framework(&self) -> String
pub fn emit_framework(&self) -> String
Emit the job management framework.
Trait Implementations§
Source§impl Clone for BashJobManager
impl Clone for BashJobManager
Source§fn clone(&self) -> BashJobManager
fn clone(&self) -> BashJobManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BashJobManager
impl RefUnwindSafe for BashJobManager
impl Send for BashJobManager
impl Sync for BashJobManager
impl Unpin for BashJobManager
impl UnsafeUnpin for BashJobManager
impl UnwindSafe for BashJobManager
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