pub enum ProtectionStatus {
Active,
Degraded,
Disabled,
Unavailable,
}Expand description
Per-protection runtime status, resolved against the host’s
Landlock ABI and the ProtectionPolicy. Returned by
Sandbox::active_protections().
Variants§
Active
Enforced (policy is Strict or Degradable, host supports it).
Degraded
Policy named the protection as Degradable, host does not support it — silently skipped.
Disabled
Policy explicitly disabled the protection.
Policy was Strict and host does not support it — would have
caused build() to fail.
Trait Implementations§
Source§impl Clone for ProtectionStatus
impl Clone for ProtectionStatus
Source§fn clone(&self) -> ProtectionStatus
fn clone(&self) -> ProtectionStatus
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 ProtectionStatus
Source§impl Debug for ProtectionStatus
impl Debug for ProtectionStatus
impl Eq for ProtectionStatus
Source§impl PartialEq for ProtectionStatus
impl PartialEq for ProtectionStatus
Source§fn eq(&self, other: &ProtectionStatus) -> bool
fn eq(&self, other: &ProtectionStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProtectionStatus
Auto Trait Implementations§
impl Freeze for ProtectionStatus
impl RefUnwindSafe for ProtectionStatus
impl Send for ProtectionStatus
impl Sync for ProtectionStatus
impl Unpin for ProtectionStatus
impl UnsafeUnpin for ProtectionStatus
impl UnwindSafe for ProtectionStatus
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.