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§
sourcefn determine_upstream(&self, conn: &mut Conn) -> Option<Url>
fn determine_upstream(&self, conn: &mut Conn) -> Option<Url>
does what it says on the label
Provided Methods§
sourcefn boxed(self) -> Box<dyn UpstreamSelector>where
Self: Sized,
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>
impl UpstreamSelector for Box<dyn UpstreamSelector>
source§fn determine_upstream(&self, conn: &mut Conn) -> Option<Url>
fn determine_upstream(&self, conn: &mut Conn) -> Option<Url>
does what it says on the label
source§fn boxed(self) -> Box<dyn UpstreamSelector>
fn boxed(self) -> Box<dyn UpstreamSelector>
turn self into a
Box<dyn UpstreamSelector>