#[non_exhaustive]pub struct CloseStats {
pub total: u64,
pub keepalive: u64,
pub read_timeout: u64,
pub write_timeout: u64,
pub peer_gone: u64,
pub io: u64,
pub decoder: u64,
pub encoder: u64,
pub service: u64,
pub shutdown: u64,
pub custom: [u64; 8],
pub other: u64,
}Expand description
Closed connections by CloseReason.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.total: u64Closed connections.
keepalive: u64Closed by the keep-alive timeout.
read_timeout: u64Closed by the read timeout.
write_timeout: u64Closed by the write timeout.
peer_gone: u64Closed by the peer.
io: u64Closed by an I/O error, reported or not.
decoder: u64Closed because incoming data could not be decoded.
encoder: u64Closed because outgoing data could not be encoded.
service: u64Closed by the service.
shutdown: u64Closed by server shutdown.
custom: [u64; 8]Closed by application-defined reasons, custom[0] counts
CloseReason::Custom1 and so on.
other: u64Closed without a reported reason, e.g. by the application.
Trait Implementations§
Source§impl Clone for CloseStats
impl Clone for CloseStats
Source§fn clone(&self) -> CloseStats
fn clone(&self) -> CloseStats
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 CloseStats
Source§impl Debug for CloseStats
impl Debug for CloseStats
Source§impl Default for CloseStats
impl Default for CloseStats
Source§fn default() -> CloseStats
fn default() -> CloseStats
Returns the “default value” for a type. Read more
impl Eq for CloseStats
Source§impl PartialEq for CloseStats
impl PartialEq for CloseStats
impl StructuralPartialEq for CloseStats
Auto Trait Implementations§
impl Freeze for CloseStats
impl RefUnwindSafe for CloseStats
impl Send for CloseStats
impl Sync for CloseStats
impl Unpin for CloseStats
impl UnsafeUnpin for CloseStats
impl UnwindSafe for CloseStats
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.