pub struct SandboxManager;Expand description
Manager for sandbox transformation.
Transforms a CommandSpec into an ExecEnv by applying the appropriate
sandbox wrapper based on the platform and policy.
Implementations§
Source§impl SandboxManager
impl SandboxManager
Sourcepub fn transform(
&self,
spec: CommandSpec,
policy: &SandboxPolicy,
sandbox_cwd: &Path,
sandbox_executable: Option<&Path>,
) -> Result<ExecEnv, SandboxTransformError>
pub fn transform( &self, spec: CommandSpec, policy: &SandboxPolicy, sandbox_cwd: &Path, sandbox_executable: Option<&Path>, ) -> Result<ExecEnv, SandboxTransformError>
Transform a command specification into a sandboxed execution environment.
Trait Implementations§
Source§impl Debug for SandboxManager
impl Debug for SandboxManager
Source§impl Default for SandboxManager
impl Default for SandboxManager
Source§fn default() -> SandboxManager
fn default() -> SandboxManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SandboxManager
impl RefUnwindSafe for SandboxManager
impl Send for SandboxManager
impl Sync for SandboxManager
impl Unpin for SandboxManager
impl UnsafeUnpin for SandboxManager
impl UnwindSafe for SandboxManager
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