pub struct Confined { /* private fields */ }Expand description
Owns reusable copies and holds background copies until their member ends (D10).
Implementations§
Source§impl Confined
impl Confined
Sourcepub fn with_arm(arm: Confinement, scratch: Option<PathBuf>) -> Confined
pub fn with_arm(arm: Confinement, scratch: Option<PathBuf>) -> Confined
An arm stated rather than found: a test’s machine, or a report about one.
pub fn arm(&self) -> &Confinement
Sourcepub fn statement(&self) -> String
pub fn statement(&self) -> String
What this arm promises and does not, for the caller’s own description of itself.
Sourcepub fn place(
&mut self,
command: Command,
workdir: &Path,
) -> Result<(Command, Placed), AxError>
pub fn place( &mut self, command: Command, workdir: &Path, ) -> Result<(Command, Placed), AxError>
Places one command under this machine’s arm: the tool’s copy of
workdir, synced to it, for the command to run in, wrapped in the
platform’s isolation where the arm is one that has a wrapper.
§Errors
E_SANDBOX_DENIED when this machine has no arm, when the arm
cannot be given by any build of this crate, or when the working
tree is too large or too deep to copy. On Linux, namespace setup
must succeed with a required unprivileged user namespace before
the working tree is copied.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Confined
impl RefUnwindSafe for Confined
impl Send for Confined
impl Sync for Confined
impl Unpin for Confined
impl UnsafeUnpin for Confined
impl UnwindSafe for Confined
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