pub struct FixedRouter(pub UpstreamConfig);Expand description
Always routes to the same upstream (or direct).
Tuple Fields§
§0: UpstreamConfigTrait Implementations§
Source§impl ProxyRouter for FixedRouter
impl ProxyRouter for FixedRouter
Source§fn route(&self, _host: &str, _port: u16) -> Result<RouteDecision, ProxyError>
fn route(&self, _host: &str, _port: u16) -> Result<RouteDecision, ProxyError>
Decide how to handle a CONNECT to
host:port.Auto Trait Implementations§
impl Freeze for FixedRouter
impl RefUnwindSafe for FixedRouter
impl Send for FixedRouter
impl Sync for FixedRouter
impl Unpin for FixedRouter
impl UnsafeUnpin for FixedRouter
impl UnwindSafe for FixedRouter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more