Trait trillium_proxy::upstream::UpstreamSelector

source ·
pub trait UpstreamSelector: Debug + Send + Sync + 'static {
    // Required method
    fn determine_upstream(&self, conn: &mut Conn) -> Option<Url>;

    // Provided method
    fn boxed(self) -> Box<dyn UpstreamSelector>
       where Self: Sized { ... }
}
Expand description

a trait for selecting the correct upstream

Required Methods§

source

fn determine_upstream(&self, conn: &mut Conn) -> Option<Url>

does what it says on the label

Provided Methods§

source

fn boxed(self) -> Box<dyn UpstreamSelector>
where Self: Sized,

turn self into a Box<dyn UpstreamSelector>

Trait Implementations§

source§

impl UpstreamSelector for Box<dyn UpstreamSelector>

source§

fn determine_upstream(&self, conn: &mut Conn) -> Option<Url>

does what it says on the label
source§

fn boxed(self) -> Box<dyn UpstreamSelector>

turn self into a Box<dyn UpstreamSelector>

Implementations on Foreign Types§

source§

impl UpstreamSelector for Box<dyn UpstreamSelector>

source§

fn determine_upstream(&self, conn: &mut Conn) -> Option<Url>

source§

fn boxed(self) -> Box<dyn UpstreamSelector>

Implementors§