pub struct PoolStats {
pub total_created: u64,
pub total_closed: u64,
pub total_checkouts: u64,
pub total_failures: u64,
pub current_size: usize,
pub current_idle: usize,
pub current_in_use: usize,
}Expand description
Statistics for the connection pool.
Fields§
§total_created: u64Total connections created.
total_closed: u64Total connections closed (recycled or broken).
total_checkouts: u64Total successful checkouts.
total_failures: u64Total failed connection attempts.
current_size: usizeCurrent pool size.
current_idle: usizeCurrent idle count.
current_in_use: usizeCurrent in-use count.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnsafeUnpin for PoolStats
impl UnwindSafe for PoolStats
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