#[non_exhaustive]pub enum Scheme {
Http,
Https,
Ftp,
Socks,
All,
}Expand description
Request scheme a proxy setting applies to (ProxyMode::Manual
per_scheme key). Not ProxyScheme (how to talk to the proxy).
Concrete schemes always beat Scheme::All. On Windows/socks=, GNOME (only SOCKS
configured → All), and macOS (SOCKSEnable fallback), readers may already have copied
SOCKS into other slots before a ProxyMode exists.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Http
http:// requests.
Https
https:// requests.
Ftp
ftp:// requests.
Socks
SOCKS / catch-all on some platforms.
All
Bare ProxyServer / all_proxy catch-all.
Implementations§
Trait Implementations§
impl Copy for Scheme
impl Eq for Scheme
Source§impl Ord for Scheme
impl Ord for Scheme
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Scheme
impl PartialOrd for Scheme
impl StructuralPartialEq for Scheme
Auto Trait Implementations§
impl Freeze for Scheme
impl RefUnwindSafe for Scheme
impl Send for Scheme
impl Sync for Scheme
impl Unpin for Scheme
impl UnsafeUnpin for Scheme
impl UnwindSafe for Scheme
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