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>