pub struct ProxyAddress {
pub socks_version: u8,
pub host: String,
pub port: u16,
pub credentials: Option<Credentials>,
}
Expand description
Represents a SOCKS proxy address.
Fields§
§socks_version: u8
The version of the SOCKS protocol.
host: String
The hostname or IP address of the proxy.
port: u16
The port number of the proxy.
credentials: Option<Credentials>
Optional credentials for authentication.
Implementations§
Trait Implementations§
Source§impl Clone for ProxyAddress
impl Clone for ProxyAddress
Source§fn clone(&self) -> ProxyAddress
fn clone(&self) -> ProxyAddress
Returns a copy of the value. Read more
1.0.0 · 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 ProxyAddress
impl Debug for ProxyAddress
Source§impl PartialEq for ProxyAddress
impl PartialEq for ProxyAddress
Source§impl ToString for ProxyAddress
impl ToString for ProxyAddress
Source§impl TryFrom<&ProxyAddress> for Address
Tries to convert a ProxyAddress
into an Address
.
impl TryFrom<&ProxyAddress> for Address
Tries to convert a ProxyAddress
into an Address
.
Source§impl TryFrom<String> for ProxyAddress
impl TryFrom<String> for ProxyAddress
impl StructuralPartialEq for ProxyAddress
Auto Trait Implementations§
impl Freeze for ProxyAddress
impl RefUnwindSafe for ProxyAddress
impl Send for ProxyAddress
impl Sync for ProxyAddress
impl Unpin for ProxyAddress
impl UnwindSafe for ProxyAddress
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