Enum socks5_protocol::Address [−][src]
pub enum Address { SocketAddr(SocketAddr), Domain(String, u16), }
Expand description
Address type in socks5.
Variants
SocketAddr(SocketAddr)
Expand description
SocketAddr
Expand description
Domain
Implementations
impl Address
[src]
impl Address
[src]pub fn to_socket_addr(self) -> Result<SocketAddr>
[src]
pub fn to_socket_addr(self) -> Result<SocketAddr>
[src]Convert Address
to SocketAddr
. If Address
is a domain, return std::io::ErrorKind::InvalidInput
Trait Implementations
impl From<SocketAddr> for Address
[src]
impl From<SocketAddr> for Address
[src]fn from(addr: SocketAddr) -> Self
[src]
fn from(addr: SocketAddr) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more