pub struct Job {
pub program: OsString,
pub args: Vec<OsString>,
pub network: bool,
pub timeout: Duration,
pub layer: Layer,
pub env: Vec<(String, OsString)>,
pub big_memory: bool,
pub max_output: usize,
}Expand description
One sandboxed invocation (what an env::EnvProvider hands its env::Runner).
Fields§
§program: OsString§args: Vec<OsString>§network: bool§timeout: Duration§layer: LayerPATH entries, variables and sandbox access on top of the clean environment.
env: Vec<(String, OsString)>Variables set last (after the layer’s).
big_memory: boolNo address-space limit: package managers (pixi) map far more than they use.
max_output: usizeBytes of each stream kept (head and tail), MAX_OUTPUT unless raised.
Implementations§
Auto Trait Implementations§
impl Forget for Job
impl Freeze for Jobwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<OsString>: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<(String, OsString)>: Freeze,
impl Move for Job
impl RefUnwindSafe for Job
impl Send for Jobwhere
RawVecInner: Send,
impl Sync for Jobwhere
RawVecInner: Sync,
impl Unpin for Job
impl UnsafeUnpin for Jobwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<OsString>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<(String, OsString)>: UnsafeUnpin,
impl UnwindSafe for Jobwhere
RawVecInner: UnwindSafe,
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