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§
Sourcefn on_connected(&self)
fn on_connected(&self)
This method is called when successfully connected to a remote server
Sourcefn on_disconnected(&self)
fn on_disconnected(&self)
This method is called when the connection is disconnected.
Sourcefn boxed_clone(&self) -> Box<dyn Tracing>
fn boxed_clone(&self) -> Box<dyn Tracing>
A way to clone itself