Skip to main content

OpsCounters

Struct OpsCounters 

Source
pub struct OpsCounters {
Show 15 fields pub connections_accepted: AtomicU64, pub connections_rejected: AtomicU64, pub active_connections: AtomicU64, pub active_file_streams: AtomicU64, pub connection_panics: AtomicU64, pub parser_rejects: AtomicU64, pub body_rejections: AtomicU64, pub header_timeouts: AtomicU64, pub body_read_timeouts: AtomicU64, pub connection_total_timeouts: AtomicU64, pub bytes_sent: AtomicU64, pub graceful_shutdowns: AtomicU64, pub forced_shutdowns: AtomicU64, pub listener_errors: AtomicU64, pub dropped_log_events: AtomicU64,
}

Fields§

§connections_accepted: AtomicU64§connections_rejected: AtomicU64§active_connections: AtomicU64§active_file_streams: AtomicU64§connection_panics: AtomicU64§parser_rejects: AtomicU64§body_rejections: AtomicU64§header_timeouts: AtomicU64§body_read_timeouts: AtomicU64§connection_total_timeouts: AtomicU64§bytes_sent: AtomicU64§graceful_shutdowns: AtomicU64§forced_shutdowns: AtomicU64§listener_errors: AtomicU64§dropped_log_events: AtomicU64

Implementations§

Source§

impl OpsCounters

Source

pub fn new() -> Self

Source

pub fn snapshot(&self) -> OpsSnapshot

Trait Implementations§

Source§

impl Debug for OpsCounters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OpsCounters

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.