pingora_core::upstreams::peer

Trait Tracing

Source
pub trait Tracing:
    Send
    + Sync
    + Debug {
    // Required methods
    fn on_connected(&self);
    fn on_disconnected(&self);
    fn boxed_clone(&self) -> Box<dyn Tracing>;
}
Expand description

The interface to trace the connection

Required Methods§

Source

fn on_connected(&self)

This method is called when successfully connected to a remote server

Source

fn on_disconnected(&self)

This method is called when the connection is disconnected.

Source

fn boxed_clone(&self) -> Box<dyn Tracing>

A way to clone itself

Implementors§