pub enum Enforcement {
Full,
Partial,
None,
}Expand description
How much of the policy is actually in force.
This is the field a caller acts on, as against SandboxMode, which only
names the backend.
Variants§
Full
Everything the policy asked for.
Partial
Some of it. The backend has capabilities the policy needs and lacks
others — neither backend has a domain-level network filter, so an
allowlist of domains becomes “no network” (localhost aside, on macOS),
which is stricter in one direction and not what was asked for in the
other. What is missing is listed in Confined::unmet.
None
None of it. The command below runs unconstrained.
Trait Implementations§
Source§impl Clone for Enforcement
impl Clone for Enforcement
Source§fn clone(&self) -> Enforcement
fn clone(&self) -> Enforcement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Enforcement
Source§impl Debug for Enforcement
impl Debug for Enforcement
impl Eq for Enforcement
Source§impl PartialEq for Enforcement
impl PartialEq for Enforcement
impl StructuralPartialEq for Enforcement
Auto Trait Implementations§
impl Forget for Enforcement
impl Freeze for Enforcement
impl Move for Enforcement
impl RefUnwindSafe for Enforcement
impl Send for Enforcement
impl Sync for Enforcement
impl Unpin for Enforcement
impl UnsafeUnpin for Enforcement
impl UnwindSafe for Enforcement
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