Enum landlock::RulesetError
source · #[non_exhaustive]pub enum RulesetError {
HandleAccesses(HandleAccessesError),
CreateRuleset(CreateRulesetError),
AddRules(AddRulesError),
RestrictSelf(RestrictSelfError),
}
Expand description
Maps to all errors that can be returned by a ruleset action.
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.
HandleAccesses(HandleAccessesError)
CreateRuleset(CreateRulesetError)
AddRules(AddRulesError)
RestrictSelf(RestrictSelfError)
Trait Implementations§
source§impl Debug for RulesetError
impl Debug for RulesetError
source§impl Display for RulesetError
impl Display for RulesetError
source§impl Error for RulesetError
impl Error for RulesetError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<AddRulesError> for RulesetError
impl From<AddRulesError> for RulesetError
source§fn from(source: AddRulesError) -> Self
fn from(source: AddRulesError) -> Self
Converts to this type from the input type.
source§impl From<CreateRulesetError> for RulesetError
impl From<CreateRulesetError> for RulesetError
source§fn from(source: CreateRulesetError) -> Self
fn from(source: CreateRulesetError) -> Self
Converts to this type from the input type.
source§impl From<HandleAccessesError> for RulesetError
impl From<HandleAccessesError> for RulesetError
source§fn from(source: HandleAccessesError) -> Self
fn from(source: HandleAccessesError) -> Self
Converts to this type from the input type.
source§impl From<RestrictSelfError> for RulesetError
impl From<RestrictSelfError> for RulesetError
source§fn from(source: RestrictSelfError) -> Self
fn from(source: RestrictSelfError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RulesetError
impl !RefUnwindSafe for RulesetError
impl Send for RulesetError
impl Sync for RulesetError
impl Unpin for RulesetError
impl !UnwindSafe for RulesetError
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