#[non_exhaustive]pub struct ServerMetrics {
pub workers: Vec<WorkerMetrics>,
pub listeners: Vec<ListenerMetrics>,
pub accept_pauses: u64,
pub accept_paused_duration: Duration,
pub accept_backlog: usize,
pub incoming_cpu_hits: u64,
pub incoming_cpu_misses: u64,
pub rescheduled: u64,
}Expand description
Snapshot of server metrics.
Counters and durations are totals since the server started. Rates over an interval are computed from the deltas of two snapshots.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.workers: Vec<WorkerMetrics>Per-worker metrics, indexed by worker id.
listeners: Vec<ListenerMetrics>Per-listener metrics, empty for servers without listeners.
accept_pauses: u64Number of times the accept loop stopped accepting connections, because no worker was available or the server was paused.
accept_paused_duration: DurationTotal time the accept loop did not accept connections, including the current pause.
accept_backlog: usizeNumber of accepted connections waiting in the accept loop for an available worker.
incoming_cpu_hits: u64Number of items sent to the worker on their incoming CPU, see
LoadBalancing::IncomingCpu.
incoming_cpu_misses: u64Number of items with a known incoming CPU that were sent to another worker, because no worker is placed on that CPU or its worker was busier than other workers.
rescheduled: u64Number of items taken from the queue of a failed, unavailable or blocked worker and sent to another worker.
Trait Implementations§
Source§impl Clone for ServerMetrics
impl Clone for ServerMetrics
Source§impl Debug for ServerMetrics
impl Debug for ServerMetrics
Source§impl Default for ServerMetrics
impl Default for ServerMetrics
impl Eq for ServerMetrics
Source§impl PartialEq for ServerMetrics
impl PartialEq for ServerMetrics
impl StructuralPartialEq for ServerMetrics
Auto Trait Implementations§
impl Freeze for ServerMetrics
impl RefUnwindSafe for ServerMetrics
impl Send for ServerMetrics
impl Sync for ServerMetrics
impl Unpin for ServerMetrics
impl UnsafeUnpin for ServerMetrics
impl UnwindSafe for ServerMetrics
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
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
key and return true if they are equal.