pub trait Rule<T>: PrivateRule<T>where
T: HandledAccess,{
// Provided method
fn quiet(self, quiet: bool) -> Self { ... }
}Expand description
A rule that can be added to a Landlock ruleset.
This trait is sealed and cannot be implemented outside of this crate.
Provided Methods§
Sourcefn quiet(self, quiet: bool) -> Self
fn quiet(self, quiet: bool) -> Self
Configures whether denials related to this rule should be omitted from audit logs.
Quiet rules require a non-empty quiet access mask for the corresponding rule category,
configured with RulesetAttr::quiet_access(). This is supported since Landlock ABI v10.
If compatibility handling removes every quiet access in the category, quieting has no
effect and a rule without allowed accesses is ignored.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".