Skip to main content

UpstreamInstance

Trait UpstreamInstance 

Source
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§

Source

fn on_transport_failure(&self, address: &str)

Source

fn on_response(&self, address: &str, status: StatusCode)

Source

fn completed(&self) -> i32

Implementors§