pub struct WrappedCommand {
pub argv: Vec<String>,
pub env: BTreeMap<String, String>,
}Expand description
The result of ProcessSandbox::wrap: the (possibly rewritten) argv plus
any environment the backend needs present in the child.
Per C1, the env additions survive the runner’s env_clear(): fluers applies
them on top of its safe allowlist at the spawn site.
Fields§
§argv: Vec<String>The argv to spawn (e.g. ["bwrap", "--unshare-net", "sh", "-c", cmd]).
Must be non-empty.
env: BTreeMap<String, String>Backend-required environment additions, applied after env_clear() +
the safe allowlist.
Trait Implementations§
Source§impl Clone for WrappedCommand
impl Clone for WrappedCommand
Source§fn clone(&self) -> WrappedCommand
fn clone(&self) -> WrappedCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WrappedCommand
impl RefUnwindSafe for WrappedCommand
impl Send for WrappedCommand
impl Sync for WrappedCommand
impl Unpin for WrappedCommand
impl UnsafeUnpin for WrappedCommand
impl UnwindSafe for WrappedCommand
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