Enum async_socks5::AddrKind
source · pub enum AddrKind {
Ip(SocketAddr),
Domain(String, u16),
}
Expand description
Either SocketAddr
or a domain and a port.
Variants§
Ip(SocketAddr)
Domain(String, u16)
Trait Implementations§
source§impl From<SocketAddr> for AddrKind
impl From<SocketAddr> for AddrKind
source§fn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Converts to this type from the input type.
source§impl From<SocketAddrV4> for AddrKind
impl From<SocketAddrV4> for AddrKind
source§fn from(value: SocketAddrV4) -> Self
fn from(value: SocketAddrV4) -> Self
Converts to this type from the input type.
source§impl From<SocketAddrV6> for AddrKind
impl From<SocketAddrV6> for AddrKind
source§fn from(value: SocketAddrV6) -> Self
fn from(value: SocketAddrV6) -> Self
Converts to this type from the input type.
source§impl PartialEq for AddrKind
impl PartialEq for AddrKind
impl Eq for AddrKind
impl StructuralPartialEq for AddrKind
Auto Trait Implementations§
impl RefUnwindSafe for AddrKind
impl Send for AddrKind
impl Sync for AddrKind
impl Unpin for AddrKind
impl UnwindSafe for AddrKind
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