pub enum Socks5Address {
Ipv4(Ipv4Addr, u16),
Ipv6(Ipv6Addr, u16),
Domain(String, u16),
}Available on crate feature
socks5 only.Expand description
Variants§
Ipv4(Ipv4Addr, u16)
IPv4 address and port.
Ipv6(Ipv6Addr, u16)
IPv6 address and port.
Domain(String, u16)
Domain name (≤ 255 bytes) and port, resolved by the proxy.
Implementations§
Source§impl Socks5Address
impl Socks5Address
Sourcepub fn new(host: &str, port: u16) -> Result<Socks5Address, Socks5AddressError>
pub fn new(host: &str, port: u16) -> Result<Socks5Address, Socks5AddressError>
Trait Implementations§
Source§impl Clone for Socks5Address
impl Clone for Socks5Address
Source§fn clone(&self) -> Socks5Address
fn clone(&self) -> Socks5Address
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 Socks5Address
impl Debug for Socks5Address
impl Eq for Socks5Address
Source§impl PartialEq for Socks5Address
impl PartialEq for Socks5Address
impl StructuralPartialEq for Socks5Address
Auto Trait Implementations§
impl Freeze for Socks5Address
impl RefUnwindSafe for Socks5Address
impl Send for Socks5Address
impl Sync for Socks5Address
impl Unpin for Socks5Address
impl UnsafeUnpin for Socks5Address
impl UnwindSafe for Socks5Address
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