pub trait UpstreamInstance: Send + Sync {
// Required methods
fn on_transport_failure(&self, address: &str);
fn on_response(&self, address: &str, status: StatusCode);
fn completed(&self) -> i32;
}Expand description
Trait for upstream instance, used to handle the upstream instance lifecycle.
Required Methods§
fn on_transport_failure(&self, address: &str)
fn on_response(&self, address: &str, status: StatusCode)
fn completed(&self) -> i32
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".