Trait salvo_proxy::Upstreams
source · pub trait Upstreams: Send + Sync + 'static {
type Error: StdError + Send + Sync + 'static;
// Required method
fn elect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<&str, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Upstreams trait.