pingora_core::protocols

Trait GetTimingDigest

Source
pub trait GetTimingDigest {
    // Required method
    fn get_timing_digest(&self) -> Vec<Option<TimingDigest>>;

    // Provided methods
    fn get_read_pending_time(&self) -> Duration { ... }
    fn get_write_pending_time(&self) -> Duration { ... }
}
Expand description

The interface to return timing information

Required Methods§

Source

fn get_timing_digest(&self) -> Vec<Option<TimingDigest>>

Return the timing for each layer from the lowest layer to upper

Provided Methods§

Implementations on Foreign Types§

Source§

impl GetTimingDigest for Mock

Source§

impl GetTimingDigest for DuplexStream

Source§

impl<T> GetTimingDigest for Cursor<T>

Implementors§