pub struct ControlObservation {
pub limits: ControlLimits,
pub applied: u64,
pub rules: u64,
pub refused: u64,
pub refusals: Vec<RefusedControl>,
}Expand description
The control files an observing index applied and refused.
Fields§
§limits: ControlLimitsThe limits the index applied control files under.
applied: u64Control files whose rules apply.
rules: u64Accepted rules summed once per governing directory, including repeated sources.
refused: u64Control files refused, counted exactly.
refusals: Vec<RefusedControl>Refused control files in path order, at most crate::MAX_RETAINED_ISSUES of
them. A list shorter than Self::refused is truncated.
Implementations§
Source§impl ControlObservation
impl ControlObservation
Sourcepub const fn is_complete(&self) -> bool
pub const fn is_complete(&self) -> bool
Whether every control file in scope applies, so ignore classification is exact.
Sourcepub fn lists_every_refusal(&self) -> bool
pub fn lists_every_refusal(&self) -> bool
Whether Self::refusals names every refused control file.
Trait Implementations§
Source§impl Clone for ControlObservation
impl Clone for ControlObservation
Source§impl Debug for ControlObservation
impl Debug for ControlObservation
impl Eq for ControlObservation
Source§impl PartialEq for ControlObservation
impl PartialEq for ControlObservation
impl StructuralPartialEq for ControlObservation
Auto Trait Implementations§
impl Freeze for ControlObservation
impl RefUnwindSafe for ControlObservation
impl Send for ControlObservation
impl Sync for ControlObservation
impl Unpin for ControlObservation
impl UnsafeUnpin for ControlObservation
impl UnwindSafe for ControlObservation
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