pub struct ChildJob {
pub side: Side,
pub codec: &'static str,
pub level: Option<i32>,
pub threads: Option<usize>,
pub memory_limit: u64,
pub out: Option<PathBuf>,
pub files: Vec<Snapshot>,
}Expand description
What one child runs. Compress: files concatenated as one stream,
written to out (discarded when None). Decompress: exactly one file,
the compressed copy; out is None.
Fields§
§side: Side§codec: &'static str§level: Option<i32>§threads: Option<usize>§memory_limit: u64§out: Option<PathBuf>§files: Vec<Snapshot>Implementations§
Source§impl ChildJob
impl ChildJob
Sourcepub fn to_args(&self) -> Vec<OsString>
pub fn to_args(&self) -> Vec<OsString>
The arguments after CHILD_ARG:
<side> <codec> <level|-> <threads|-> <memory-limit> <out|-> [<len> <path>]…,
side being compress or decompress, every number in decimal.
The decompress side ignores the level (the parent sends -). out
is - for none; the parent’s is always an absolute temp path.
Paths go as they are (not through UTF-8), each its own argument.
Trait Implementations§
impl Eq for ChildJob
impl StructuralPartialEq for ChildJob
Auto Trait Implementations§
impl Forget for ChildJob
impl Freeze for ChildJob
impl RefUnwindSafe for ChildJob
impl Send for ChildJob
impl Sync for ChildJob
impl Unpin for ChildJob
impl UnsafeUnpin for ChildJob
impl UnwindSafe for ChildJob
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.