pub struct Probe {
pub name: &'static str,
pub status: ProbeStatus,
pub elapsed_ms: u64,
pub hint: Option<String>,
}Expand description
One named probe within a CheckReport (e.g. "read", "auth",
"network", "permissions", "schema", "io", "sentinel").
Fields§
§name: &'static strShort, stable probe name.
status: ProbeStatusThe outcome; serialized inline as status (+ reason on fail/skip).
elapsed_ms: u64Wall-clock time the probe took.
hint: Option<String>Remediation hint shown on failure. Must never contain secrets.
Implementations§
Source§impl Probe
impl Probe
Sourcepub fn fail(
name: &'static str,
elapsed: Duration,
reason: impl Into<String>,
) -> Self
pub fn fail( name: &'static str, elapsed: Duration, reason: impl Into<String>, ) -> Self
A failing probe with a reason and no hint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Probe
impl RefUnwindSafe for Probe
impl Send for Probe
impl Sync for Probe
impl Unpin for Probe
impl UnsafeUnpin for Probe
impl UnwindSafe for Probe
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