pub enum SandboxLevel {
None = 0,
Minimal = 1,
Standard = 2,
Strict = 3,
Paranoid = 4,
}Expand description
Sandbox security levels.
Variants§
None = 0
No isolation - NEVER use in production.
Minimal = 1
Basic filesystem isolation.
Standard = 2
PID namespace + resource limits (default).
Strict = 3
Network isolation + seccomp filtering.
Paranoid = 4
No host filesystem access.
Trait Implementations§
Source§impl Clone for SandboxLevel
impl Clone for SandboxLevel
Source§fn clone(&self) -> SandboxLevel
fn clone(&self) -> SandboxLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SandboxLevel
impl Debug for SandboxLevel
Source§impl Default for SandboxLevel
impl Default for SandboxLevel
Source§fn default() -> SandboxLevel
fn default() -> SandboxLevel
Returns the “default value” for a type. Read more
Source§impl Ord for SandboxLevel
impl Ord for SandboxLevel
Source§fn cmp(&self, other: &SandboxLevel) -> Ordering
fn cmp(&self, other: &SandboxLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SandboxLevel
impl PartialEq for SandboxLevel
Source§impl PartialOrd for SandboxLevel
impl PartialOrd for SandboxLevel
impl Copy for SandboxLevel
impl Eq for SandboxLevel
impl StructuralPartialEq for SandboxLevel
Auto Trait Implementations§
impl Freeze for SandboxLevel
impl RefUnwindSafe for SandboxLevel
impl Send for SandboxLevel
impl Sync for SandboxLevel
impl Unpin for SandboxLevel
impl UnwindSafe for SandboxLevel
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