#[non_exhaustive]pub enum Operation {
CreateRuleset,
AddRule,
RestrictSelf,
SetNoNewPrivs,
Stat,
}Expand description
A Landlock operation that failed with an unexpected error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CreateRuleset
landlock_create_ruleset(2).
AddRule
landlock_add_rule(2).
RestrictSelf
landlock_restrict_self(2).
SetNoNewPrivs
prctl(PR_SET_NO_NEW_PRIVS).
Stat
fstat(2), used to tell files from directories.
Trait Implementations§
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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