pub enum ExitProxyScheme {
Socks5,
HttpConnect,
}Expand description
Upstream-proxy wire protocol for ExitProxyConfig. Mirrors ts_forwarder::ProxyScheme;
kept as a separate type here because ts_control must not depend on ts_forwarder (the
runtime converts between them at the boundary).
Variants§
Socks5
SOCKS5 (RFC 1928), with optional username/password auth (RFC 1929).
HttpConnect
HTTP CONNECT tunnelling, with optional Proxy-Authorization: Basic auth.
Trait Implementations§
Source§impl Clone for ExitProxyScheme
impl Clone for ExitProxyScheme
Source§fn clone(&self) -> ExitProxyScheme
fn clone(&self) -> ExitProxyScheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExitProxyScheme
Source§impl Debug for ExitProxyScheme
impl Debug for ExitProxyScheme
Source§impl<'de> Deserialize<'de> for ExitProxyScheme
impl<'de> Deserialize<'de> for ExitProxyScheme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExitProxyScheme
Source§impl PartialEq for ExitProxyScheme
impl PartialEq for ExitProxyScheme
Source§fn eq(&self, other: &ExitProxyScheme) -> bool
fn eq(&self, other: &ExitProxyScheme) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExitProxyScheme
impl Serialize for ExitProxyScheme
impl StructuralPartialEq for ExitProxyScheme
Auto Trait Implementations§
impl Freeze for ExitProxyScheme
impl RefUnwindSafe for ExitProxyScheme
impl Send for ExitProxyScheme
impl Sync for ExitProxyScheme
impl Unpin for ExitProxyScheme
impl UnsafeUnpin for ExitProxyScheme
impl UnwindSafe for ExitProxyScheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.