Enum otter_api_tests::imports::nix::sys::socket::InetAddr[]

pub enum InetAddr {
    V4(sockaddr_in),
    V6(sockaddr_in6),
}

Variants

Implementations

impl InetAddr

pub fn from_std(std: &SocketAddr) -> InetAddr

pub fn new(ip: IpAddr, port: u16) -> InetAddr

pub fn ip(&self) -> IpAddr

Gets the IP address associated with this socket address.

pub fn port(&self) -> u16

Gets the port number associated with this socket address

pub fn to_std(&self) -> SocketAddr

pub fn to_str(&self) -> String

Trait Implementations

impl Clone for InetAddr

impl Copy for InetAddr

impl Debug for InetAddr

impl Display for InetAddr

impl Eq for InetAddr

impl Hash for InetAddr

impl PartialEq<InetAddr> for InetAddr

impl StructuralEq for InetAddr

impl StructuralPartialEq for InetAddr

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<A> DynCastExt for A

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,