Enum landlock::CompatLevel
source · pub enum CompatLevel {
BestEffort,
SoftRequirement,
HardRequirement,
}
Expand description
See the Compatible
documentation.
Variants§
BestEffort
Takes into account the build requests if they are supported by the running system, or silently ignores them otherwise. Never returns a compatibility error.
SoftRequirement
Takes into account the build requests if they are supported by the running system,
or silently ignores the whole build object otherwise.
Never returns a compatibility error.
If not supported,
the call to RulesetCreated::restrict_self()
will return a
RestrictionStatus { ruleset: RulesetStatus::NotEnforced, no_new_privs: false, }
.
HardRequirement
Takes into account the build requests if they are supported by the running system,
or returns a compatibility error otherwise (CompatError
).
Trait Implementations§
source§impl Clone for CompatLevel
impl Clone for CompatLevel
source§fn clone(&self) -> CompatLevel
fn clone(&self) -> CompatLevel
Returns a copy 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 CompatLevel
impl Debug for CompatLevel
source§impl Default for CompatLevel
impl Default for CompatLevel
source§fn default() -> CompatLevel
fn default() -> CompatLevel
Returns the “default value” for a type. Read more
source§impl From<Option<CompatLevel>> for CompatLevel
impl From<Option<CompatLevel>> for CompatLevel
source§fn from(opt: Option<CompatLevel>) -> Self
fn from(opt: Option<CompatLevel>) -> Self
Converts to this type from the input type.
source§impl Ord for CompatLevel
impl Ord for CompatLevel
source§fn cmp(&self, other: &CompatLevel) -> Ordering
fn cmp(&self, other: &CompatLevel) -> 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 CompatLevel
impl PartialEq for CompatLevel
source§fn eq(&self, other: &CompatLevel) -> bool
fn eq(&self, other: &CompatLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompatLevel
impl PartialOrd for CompatLevel
source§fn partial_cmp(&self, other: &CompatLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &CompatLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CompatLevel
impl Eq for CompatLevel
impl StructuralPartialEq for CompatLevel
Auto Trait Implementations§
impl Freeze for CompatLevel
impl RefUnwindSafe for CompatLevel
impl Send for CompatLevel
impl Sync for CompatLevel
impl Unpin for CompatLevel
impl UnwindSafe for CompatLevel
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)