Skip to main content

NoopObserver

Struct NoopObserver 

Source
pub struct NoopObserver;
Expand description

The default observer: does nothing, enabled() is false.

Trait Implementations§

Source§

impl Clone for NoopObserver

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for NoopObserver

Source§

impl Debug for NoopObserver

Source§

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

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

impl Default for NoopObserver

Source§

fn default() -> Self

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

impl Observer for NoopObserver

Source§

fn enabled(&self) -> bool

Callers skip timestamping when this is false.
Source§

fn request_queued(&self, o: &OriginKey, wait: Duration)

Pool checkout + stream-slot wait.
Source§

fn request_dispatched(&self, o: &OriginKey, delay: Duration)

H2: enqueue to HEADERS written.
Source§

fn connect_phase( &self, o: &OriginKey, phase: ConnectPhase, d: Duration, ok: bool, )

Source§

fn connection_opened(&self, o: &OriginKey, p: Protocol)

Source§

fn connection_closed(&self, o: &OriginKey, p: Protocol, lifetime: Duration)

Source§

fn write_batch(&self, o: &OriginKey, bytes: usize, iovecs: usize)

Source§

fn bytes_read(&self, o: &OriginKey, n: usize)

Source§

fn actor_tick(&self, o: &OriginKey, busy: Duration, queue_depth: usize)

Source§

fn flow_control_stall(&self, o: &OriginKey, d: Duration)

Source§

fn h2_goaway(&self, o: &OriginKey, code: u32)

Source§

fn h2_rst_stream(&self, o: &OriginKey, code: u32, sent: bool)

Source§

fn pool_waiters(&self, o: &OriginKey, n: usize)

Source§

fn pool_scaled(&self, o: &OriginKey, conns: usize, reason: ScaleReason)

The pool changed the HTTP/2 connection count of o; conns is the new number of live connections. Rare (at most a few per second); called from pool tasks, never from the request hot path.

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.