#[non_exhaustive]pub enum Proxy {
Host(String),
UnixSocket(String),
}Expand description
Instead of connecting directly to the host, connect via this proxy
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.
Host(String)
Connect to the SOCKS proxy at this address (a url)
Examples: http://hostname, https://hostname, socks5://hostname.
UnixSocket(String)
Instead of making a TCP connection, connect to the Unix domain socket with the given path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Proxy
impl RefUnwindSafe for Proxy
impl Send for Proxy
impl Sync for Proxy
impl Unpin for Proxy
impl UnwindSafe for Proxy
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