pub struct HealthCheckStats {
pub total_checks: u64,
pub successful_checks: u64,
pub failed_checks: u64,
}Expand description
Health check statistics
Fields§
§total_checks: u64§successful_checks: u64§failed_checks: u64Implementations§
Source§impl HealthCheckStats
impl HealthCheckStats
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate
Trait Implementations§
Source§impl Clone for HealthCheckStats
impl Clone for HealthCheckStats
Source§fn clone(&self) -> HealthCheckStats
fn clone(&self) -> HealthCheckStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HealthCheckStats
impl RefUnwindSafe for HealthCheckStats
impl Send for HealthCheckStats
impl Sync for HealthCheckStats
impl Unpin for HealthCheckStats
impl UnsafeUnpin for HealthCheckStats
impl UnwindSafe for HealthCheckStats
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,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request