#[non_exhaustive]pub struct ListenerMetrics {
pub name: String,
pub addr: String,
pub accepted: u64,
pub connection_errors: u64,
pub resource_errors: u64,
}Expand description
Metrics of a single listener.
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.name: StringService name the listener was registered with.
addr: StringLocal address of the listener.
accepted: u64Number of accepted connections.
connection_errors: u64Number of per-connection accept errors, e.g. the connection was reset before it was accepted.
resource_errors: u64Number of other accept errors, e.g. the process ran out of file descriptors. The listener stops accepting for a short time after each.
Trait Implementations§
Source§impl Clone for ListenerMetrics
impl Clone for ListenerMetrics
Source§impl Debug for ListenerMetrics
impl Debug for ListenerMetrics
Source§impl Default for ListenerMetrics
impl Default for ListenerMetrics
impl Eq for ListenerMetrics
Source§impl PartialEq for ListenerMetrics
impl PartialEq for ListenerMetrics
impl StructuralPartialEq for ListenerMetrics
Auto Trait Implementations§
impl Forget for ListenerMetrics
impl Freeze for ListenerMetrics
impl RefUnwindSafe for ListenerMetrics
impl Send for ListenerMetrics
impl Sync for ListenerMetrics
impl Unpin for ListenerMetrics
impl UnsafeUnpin for ListenerMetrics
impl UnwindSafe for ListenerMetrics
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
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,
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.