pub struct SubsystemStatus {
pub healthy: bool,
pub reason: Option<&'static str>,
pub last_success: Option<Instant>,
pub last_failure: Option<Instant>,
}Expand description
Per-subsystem health snapshot. Immutable once created.
Fields§
§healthy: boolWhether the subsystem is currently healthy.
reason: Option<&'static str>Human-readable reason for an unhealthy state. None when healthy.
last_success: Option<Instant>Timestamp of the most recent successful operation. Used for staleness detection — if healthy but last success is old, may be stale.
last_failure: Option<Instant>Timestamp of the most recent failed operation.
Trait Implementations§
Source§impl From<&SubsystemStatus> for CheckResult
impl From<&SubsystemStatus> for CheckResult
Source§fn from(s: &SubsystemStatus) -> Self
fn from(s: &SubsystemStatus) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubsystemStatus
impl RefUnwindSafe for SubsystemStatus
impl Send for SubsystemStatus
impl Sync for SubsystemStatus
impl Unpin for SubsystemStatus
impl UnsafeUnpin for SubsystemStatus
impl UnwindSafe for SubsystemStatus
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more