pub enum Addr {
V4(Ipv4Addr),
Host(String),
V6(Ipv6Addr),
}Expand description
socks5 dest addr
Variants§
V4(Ipv4Addr)
ipv4 addr 4 bytes
Host(String)
hostname, first bytes is hostname len
V6(Ipv6Addr)
ipv6 addr 16 bytes
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Addr
impl RefUnwindSafe for Addr
impl Send for Addr
impl Sync for Addr
impl Unpin for Addr
impl UnwindSafe for Addr
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