pub struct SandboxPolicy { /* private fields */ }Expand description
Complete declarative sandbox policy. This type does not imply enforcement.
Implementations§
Source§impl SandboxPolicy
impl SandboxPolicy
pub fn new( mode: SandboxMode, filesystem: FilesystemPolicy, network: bool, environment: Vec<String>, subprocess: bool, limits: ExecutionLimits, ) -> Result<Self, ConfigError>
pub fn new_with_assurance( mode: SandboxMode, assurance: AssuranceLevel, filesystem: FilesystemPolicy, network: bool, environment: Vec<String>, subprocess: bool, limits: ExecutionLimits, ) -> Result<Self, ConfigError>
pub fn mode(&self) -> SandboxMode
pub fn assurance(&self) -> AssuranceLevel
pub fn filesystem(&self) -> &FilesystemPolicy
pub fn network(&self) -> bool
pub fn environment(&self) -> &[String]
pub fn subprocess(&self) -> bool
pub fn limits(&self) -> &ExecutionLimits
Trait Implementations§
Source§impl Clone for SandboxPolicy
impl Clone for SandboxPolicy
Source§impl Debug for SandboxPolicy
impl Debug for SandboxPolicy
Source§impl Default for SandboxPolicy
impl Default for SandboxPolicy
impl Eq for SandboxPolicy
Source§impl PartialEq for SandboxPolicy
impl PartialEq for SandboxPolicy
impl StructuralPartialEq for SandboxPolicy
Auto Trait Implementations§
impl Forget for SandboxPolicy
impl Freeze for SandboxPolicy
impl Move for SandboxPolicy
impl RefUnwindSafe for SandboxPolicy
impl Send for SandboxPolicywhere
RawVecInner: Send,
impl Sync for SandboxPolicywhere
RawVecInner: Sync,
impl Unpin for SandboxPolicy
impl UnsafeUnpin for SandboxPolicy
impl UnwindSafe for SandboxPolicywhere
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