pub struct ProxyConfig {
pub proxy_type: ProxyType,
pub hostname: String,
pub port: u16,
pub username: Option<String>,
pub password: Option<String>,
pub proxy_peer_connections: bool,
pub proxy_tracker_connections: bool,
pub proxy_hostnames: bool,
pub socks5_udp_send_local_ep: bool,
}Expand description
Proxy connection settings.
Fields§
§proxy_type: ProxyTypeProxy protocol to use.
hostname: StringProxy server hostname or IP address.
port: u16Proxy server port.
username: Option<String>Username for authenticated proxy types.
password: Option<String>Password for authenticated proxy types.
proxy_peer_connections: boolRoute peer connections (incl. web seeds) through proxy.
proxy_tracker_connections: boolRoute tracker HTTP connections through proxy.
proxy_hostnames: boolResolve hostnames through proxy (SOCKS5/HTTP only).
socks5_udp_send_local_ep: boolInclude local endpoint in SOCKS5 UDP ASSOCIATE.
Implementations§
Trait Implementations§
Source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
Source§fn clone(&self) -> ProxyConfig
fn clone(&self) -> ProxyConfig
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 ProxyConfig
impl Debug for ProxyConfig
Source§impl Default for ProxyConfig
impl Default for ProxyConfig
Source§impl<'de> Deserialize<'de> for ProxyConfig
impl<'de> Deserialize<'de> for ProxyConfig
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
Source§impl PartialEq for ProxyConfig
impl PartialEq for ProxyConfig
Source§fn eq(&self, other: &ProxyConfig) -> bool
fn eq(&self, other: &ProxyConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProxyConfig
impl Serialize for ProxyConfig
impl StructuralPartialEq for ProxyConfig
Auto Trait Implementations§
impl Freeze for ProxyConfig
impl RefUnwindSafe for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnsafeUnpin for ProxyConfig
impl UnwindSafe for ProxyConfig
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