pub enum ProxyMode {
Auto,
Direct,
Manual(String),
}Expand description
How to route outbound HTTP requests.
Variants§
Auto
Detect proxy automatically (env vars → OS settings → direct).
Direct
Always connect directly; ignore any system proxy.
Manual(String)
Use the supplied proxy URI (e.g. "http://192.168.1.1:8080").
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProxyMode
impl RefUnwindSafe for ProxyMode
impl Send for ProxyMode
impl Sync for ProxyMode
impl Unpin for ProxyMode
impl UnsafeUnpin for ProxyMode
impl UnwindSafe for ProxyMode
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