pub struct PoolHealthReport {
pub check_duration: Duration,
pub total_check_time: Duration,
pub pool_size: u32,
pub idle_connections: u32,
pub active_connections: u32,
pub total_acquires: u64,
pub total_errors: u64,
pub error_rate: f64,
pub created_at: Instant,
}Expand description
Detailed pool health report
Fields§
§check_duration: Duration§total_check_time: Duration§pool_size: u32§idle_connections: u32§active_connections: u32§total_acquires: u64§total_errors: u64§error_rate: f64§created_at: InstantTrait Implementations§
Source§impl Clone for PoolHealthReport
impl Clone for PoolHealthReport
Source§fn clone(&self) -> PoolHealthReport
fn clone(&self) -> PoolHealthReport
Returns a duplicate of the value. Read more
1.0.0 · 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 PoolHealthReport
impl RefUnwindSafe for PoolHealthReport
impl Send for PoolHealthReport
impl Sync for PoolHealthReport
impl Unpin for PoolHealthReport
impl UnwindSafe for PoolHealthReport
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> 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