pub struct Report {
pub checks: Vec<CheckResult>,
pub is_container: bool,
}Available on crate feature
diagnostics only.Expand description
A full diagnostic report: every check, plus the final answer.
Fields§
§checks: Vec<CheckResult>Per-check results in evaluation order.
is_container: boolFinal answer — equal to crate::is_container for the
current process. This may differ from
Report::any_matched because the algorithm has an
early-return-false when in the root PID namespace.
Implementations§
Source§impl Report
impl Report
Sourcepub fn any_matched(&self) -> bool
pub fn any_matched(&self) -> bool
true if any individual check matched. Note: this is not
always equal to Report::is_container, because the
algorithm short-circuits to false when the process is in
the host’s root PID namespace.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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