#[non_exhaustive]pub enum AddRuleError<T>where
T: Access,{
AddRuleCall {
source: Error,
},
UnhandledAccess {
access: BitFlags<T>,
incompatible: BitFlags<T>,
},
Compat(CompatError<T>),
}
Expand description
Identifies errors when adding a rule to a ruleset.
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.
AddRuleCall
The landlock_add_rule()
system call failed.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
UnhandledAccess
The rule’s access-rights are not all handled by the (requested) ruleset access-rights.
Compat(CompatError<T>)
Trait Implementations§
source§impl<T> Debug for AddRuleError<T>
impl<T> Debug for AddRuleError<T>
source§impl<T> Display for AddRuleError<T>
impl<T> Display for AddRuleError<T>
source§impl<T> Error for AddRuleError<T>
impl<T> Error for AddRuleError<T>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<A> From<AddRuleError<A>> for AddRulesErrorwhere
A: Access,
impl<A> From<AddRuleError<A>> for AddRulesErrorwhere
A: Access,
source§fn from(error: AddRuleError<A>) -> Self
fn from(error: AddRuleError<A>) -> Self
Converts to this type from the input type.
source§impl<T> From<CompatError<T>> for AddRuleError<T>where
T: Access,
impl<T> From<CompatError<T>> for AddRuleError<T>where
T: Access,
source§fn from(source: CompatError<T>) -> Self
fn from(source: CompatError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for AddRuleError<T>where
<T as RawBitFlags>::Numeric: Freeze,
impl<T> !RefUnwindSafe for AddRuleError<T>
impl<T> Send for AddRuleError<T>
impl<T> Sync for AddRuleError<T>
impl<T> Unpin for AddRuleError<T>
impl<T> !UnwindSafe for AddRuleError<T>
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