pub struct NoopObserver;Expand description
The default observer: does nothing, enabled() is false.
Trait Implementations§
Source§impl Clone for NoopObserver
impl Clone for NoopObserver
impl Copy for NoopObserver
Source§impl Debug for NoopObserver
impl Debug for NoopObserver
Source§impl Default for NoopObserver
impl Default for NoopObserver
Source§impl Observer for NoopObserver
impl Observer for NoopObserver
Source§fn request_queued(&self, o: &OriginKey, wait: Duration)
fn request_queued(&self, o: &OriginKey, wait: Duration)
Pool checkout + stream-slot wait.
Source§fn request_dispatched(&self, o: &OriginKey, delay: Duration)
fn request_dispatched(&self, o: &OriginKey, delay: Duration)
H2: enqueue to HEADERS written.
fn connect_phase( &self, o: &OriginKey, phase: ConnectPhase, d: Duration, ok: bool, )
fn connection_opened(&self, o: &OriginKey, p: Protocol)
fn connection_closed(&self, o: &OriginKey, p: Protocol, lifetime: Duration)
fn write_batch(&self, o: &OriginKey, bytes: usize, iovecs: usize)
fn bytes_read(&self, o: &OriginKey, n: usize)
fn actor_tick(&self, o: &OriginKey, busy: Duration, queue_depth: usize)
fn flow_control_stall(&self, o: &OriginKey, d: Duration)
fn h2_goaway(&self, o: &OriginKey, code: u32)
fn h2_rst_stream(&self, o: &OriginKey, code: u32, sent: bool)
fn pool_waiters(&self, o: &OriginKey, n: usize)
Source§fn pool_scaled(&self, o: &OriginKey, conns: usize, reason: ScaleReason)
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§
impl Forget for NoopObserver
impl Freeze for NoopObserver
impl Move for NoopObserver
impl RefUnwindSafe for NoopObserver
impl Send for NoopObserver
impl Sync for NoopObserver
impl Unpin for NoopObserver
impl UnsafeUnpin for NoopObserver
impl UnwindSafe for NoopObserver
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