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
sourceimpl From<SocketAddr> for AddrKind
impl From<SocketAddr> for AddrKind
sourcefn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Performs the conversion.
sourceimpl From<SocketAddrV4> for AddrKind
impl From<SocketAddrV4> for AddrKind
sourcefn from(value: SocketAddrV4) -> Self
fn from(value: SocketAddrV4) -> Self
Performs the conversion.
sourceimpl From<SocketAddrV6> for AddrKind
impl From<SocketAddrV6> for AddrKind
sourcefn from(value: SocketAddrV6) -> Self
fn from(value: SocketAddrV6) -> Self
Performs the conversion.
impl Eq for AddrKind
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more