pub struct CaStatus {
pub health: HealthState,
pub consecutive_failures: u32,
pub last_success: Option<Instant>,
pub circuit_open_since: Option<Instant>,
pub latency_ema_ms: f64,
pub last_latency: Option<Duration>,
}Expand description
Runtime status of a single CA backend.
Fields§
§health: HealthStateCurrent health state from the health checker.
consecutive_failures: u32Number of consecutive probe failures.
last_success: Option<Instant>Timestamp of the last successful probe.
circuit_open_since: Option<Instant>Timestamp when the circuit breaker tripped (CA marked unavailable).
latency_ema_ms: f64Recent response latency (exponential moving average in milliseconds).
last_latency: Option<Duration>Last observed response latency (for admin display).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CaStatus
impl RefUnwindSafe for CaStatus
impl Send for CaStatus
impl Sync for CaStatus
impl Unpin for CaStatus
impl UnsafeUnpin for CaStatus
impl UnwindSafe for CaStatus
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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