pub struct PoolSnapshot {
pub cluster: String,
pub opened: u64,
pub dispatched: u64,
pub reused: u64,
}Expand description
One upstream cluster’s connection-reuse counters, the signal that the pool is
amortizing TLS/TCP handshakes (opened far below dispatched). cluster is
an infrastructure id, not tenant data.
Fields§
§cluster: StringThe cluster id (infrastructure identifier).
opened: u64Connections the pool opened to the cluster (cold handshakes).
dispatched: u64Requests dispatched to the cluster (cold + reused).
reused: u64Requests that rode a reused pooled connection (dispatched - opened).
Trait Implementations§
Source§impl Clone for PoolSnapshot
impl Clone for PoolSnapshot
Source§fn clone(&self) -> PoolSnapshot
fn clone(&self) -> PoolSnapshot
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 moreSource§impl Debug for PoolSnapshot
impl Debug for PoolSnapshot
Source§impl<'de> Deserialize<'de> for PoolSnapshot
impl<'de> Deserialize<'de> for PoolSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PoolSnapshot
Source§impl PartialEq for PoolSnapshot
impl PartialEq for PoolSnapshot
Source§fn eq(&self, other: &PoolSnapshot) -> bool
fn eq(&self, other: &PoolSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PoolSnapshot
impl Serialize for PoolSnapshot
impl StructuralPartialEq for PoolSnapshot
Auto Trait Implementations§
impl Freeze for PoolSnapshot
impl RefUnwindSafe for PoolSnapshot
impl Send for PoolSnapshot
impl Sync for PoolSnapshot
impl Unpin for PoolSnapshot
impl UnsafeUnpin for PoolSnapshot
impl UnwindSafe for PoolSnapshot
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