#[non_exhaustive]pub struct PartitionConnectionStats { /* private fields */ }Expand description
Diagnostic connection state for one configured partition and origin.
This snapshot is not transactional across its exact cell-owned values and relaxed lifetime counts. The relaxed counts are nonnegative and converge after concurrent transitions settle.
Implementations§
Source§impl PartitionConnectionStats
impl PartitionConnectionStats
Sourcepub fn pending_acquisitions(&self) -> usize
pub fn pending_acquisitions(&self) -> usize
Returns requests without a terminal cell-local acquisition outcome.
Sourcepub fn establishing_connections(&self) -> usize
pub fn establishing_connections(&self) -> usize
Returns connection establishments that have not reached a terminal outcome.
The count spans connector, protocol selection, Hyper handshake, and pool installation work.
Sourcepub fn h1(&self) -> &Http1ConnectionStats
pub fn h1(&self) -> &Http1ConnectionStats
Returns HTTP/1 connection state.
Sourcepub fn h2(&self) -> &Http2ConnectionStats
pub fn h2(&self) -> &Http2ConnectionStats
Returns HTTP/2 connection state.
Sourcepub fn physically_live_connections(&self) -> usize
pub fn physically_live_connections(&self) -> usize
Returns root transport handles still owned by the client.
The operating system may continue transport teardown after this count decreases.
Trait Implementations§
Source§impl Clone for PartitionConnectionStats
impl Clone for PartitionConnectionStats
Source§fn clone(&self) -> PartitionConnectionStats
fn clone(&self) -> PartitionConnectionStats
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 moreimpl Copy for PartitionConnectionStats
Source§impl Debug for PartitionConnectionStats
impl Debug for PartitionConnectionStats
Source§impl Default for PartitionConnectionStats
impl Default for PartitionConnectionStats
Source§fn default() -> PartitionConnectionStats
fn default() -> PartitionConnectionStats
Returns the “default value” for a type. Read more
impl Eq for PartitionConnectionStats
Source§impl PartialEq for PartitionConnectionStats
impl PartialEq for PartitionConnectionStats
impl StructuralPartialEq for PartitionConnectionStats
Auto Trait Implementations§
impl Freeze for PartitionConnectionStats
impl RefUnwindSafe for PartitionConnectionStats
impl Send for PartitionConnectionStats
impl Sync for PartitionConnectionStats
impl Unpin for PartitionConnectionStats
impl UnsafeUnpin for PartitionConnectionStats
impl UnwindSafe for PartitionConnectionStats
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreCreates a shared type from an unshared type.