pub struct CircuitBreakerStats {
pub total_requests: u64,
pub successful_requests: u64,
pub failed_requests: u64,
pub rejected_requests: u64,
pub state_transitions: u64,
pub current_state: CircuitState,
pub last_failure_time: Option<Instant>,
pub last_success_time: Option<Instant>,
}Expand description
Circuit breaker statistics
Fields§
§total_requests: u64§successful_requests: u64§failed_requests: u64§rejected_requests: u64§state_transitions: u64§current_state: CircuitState§last_failure_time: Option<Instant>§last_success_time: Option<Instant>Trait Implementations§
Source§impl Debug for CircuitBreakerStats
impl Debug for CircuitBreakerStats
Source§impl Default for CircuitBreakerStats
impl Default for CircuitBreakerStats
Source§fn default() -> CircuitBreakerStats
fn default() -> CircuitBreakerStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CircuitBreakerStats
impl RefUnwindSafe for CircuitBreakerStats
impl Send for CircuitBreakerStats
impl Sync for CircuitBreakerStats
impl Unpin for CircuitBreakerStats
impl UnwindSafe for CircuitBreakerStats
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
§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> 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