pub enum UpstreamConfig {
Direct,
Socks5 {
host: String,
port: u16,
credentials: Option<Socks5Credentials>,
},
}Expand description
Where to send the tunnelled traffic.
Variants§
Trait Implementations§
Source§impl Clone for UpstreamConfig
impl Clone for UpstreamConfig
Source§fn clone(&self) -> UpstreamConfig
fn clone(&self) -> UpstreamConfig
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 moreSource§impl Debug for UpstreamConfig
impl Debug for UpstreamConfig
Source§impl<'de> Deserialize<'de> for UpstreamConfig
impl<'de> Deserialize<'de> for UpstreamConfig
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 UpstreamConfig
Source§impl PartialEq for UpstreamConfig
impl PartialEq for UpstreamConfig
Source§fn eq(&self, other: &UpstreamConfig) -> bool
fn eq(&self, other: &UpstreamConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpstreamConfig
impl Serialize for UpstreamConfig
impl StructuralPartialEq for UpstreamConfig
Auto Trait Implementations§
impl Freeze for UpstreamConfig
impl RefUnwindSafe for UpstreamConfig
impl Send for UpstreamConfig
impl Sync for UpstreamConfig
impl Unpin for UpstreamConfig
impl UnsafeUnpin for UpstreamConfig
impl UnwindSafe for UpstreamConfig
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