pub struct SandboxHandle {
pub world: World,
pub root: PathBuf,
/* private fields */
}Expand description
What a sandbox hands back to the caller — a World rooted at the sandbox
path, plus introspection / cleanup helpers.
Fields§
§world: World§root: PathBufImplementations§
Source§impl SandboxHandle
impl SandboxHandle
pub fn label(&self) -> &str
pub fn root(&self) -> &Path
Sourcepub fn keep(&mut self)
pub fn keep(&mut self)
Skip the cleanup callback on drop. Useful when you want to inspect the sandbox afterwards.
Sourcepub fn into_world(self) -> World
pub fn into_world(self) -> World
Take ownership of the sandbox World, keeping the environment alive
(the cleanup callback is dropped, like keep). Intended
for backends with no cleanup resource — Seatbelt / bubblewrap / null —
where nothing leaks.
Trait Implementations§
Source§impl Drop for SandboxHandle
impl Drop for SandboxHandle
Auto Trait Implementations§
impl !RefUnwindSafe for SandboxHandle
impl !Sync for SandboxHandle
impl !UnwindSafe for SandboxHandle
impl Forget for SandboxHandle
impl Freeze for SandboxHandle
impl Send for SandboxHandle
impl Unpin for SandboxHandle
impl UnsafeUnpin for SandboxHandle
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