pub struct ProfileRouter { /* private fields */ }Expand description
Routes based on a list of named profiles, with one active at a time.
Falls back to Direct when no profile is active.
Implementations§
Trait Implementations§
Source§impl ProxyRouter for ProfileRouter
impl ProxyRouter for ProfileRouter
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 ProfileRouter
impl RefUnwindSafe for ProfileRouter
impl Send for ProfileRouter
impl Sync for ProfileRouter
impl Unpin for ProfileRouter
impl UnsafeUnpin for ProfileRouter
impl UnwindSafe for ProfileRouter
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