pub struct Checker { /* private fields */ }Expand description
An Enforcement with its globs compiled.
Implementations§
Source§impl Checker
impl Checker
Sourcepub fn check(&self, atom: &AtomicAction) -> Option<Effect>
pub fn check(&self, atom: &AtomicAction) -> Option<Effect>
What an OS layer does with atom: None for a decide-only kind.
Sourcepub fn check_os(&self, atom: &AtomicAction) -> Option<Effect>
pub fn check_os(&self, atom: &AtomicAction) -> Option<Effect>
What an OS layer does with atom once the super::Allowances apply:
a deny rule still denies, then an allowance allows, then Self::check.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Checker
impl RefUnwindSafe for Checker
impl Send for Checker
impl Sync for Checker
impl Unpin for Checker
impl UnsafeUnpin for Checker
impl UnwindSafe for Checker
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