pub enum Route {
Proxy,
PreferProxy,
Direct,
}Expand description
How a single connection should be routed. Returned by a ProxyPolicy.
Variants§
Proxy
Connect through the configured proxy; fail with ConnectError::ProxyRequired if none
is configured.
PreferProxy
Connect through the proxy if one is configured, otherwise directly.
Direct
Connect directly, even if a proxy is configured.
Trait Implementations§
impl Copy for Route
impl Eq for Route
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl Forget for Route
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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