[][src]Struct internet2::addr::InetSocketAddrExt

pub struct InetSocketAddrExt(pub Transport, pub InetSocketAddr);

Internet socket address of InetSocketAddr type, extended with a transport-level protocol information (see Transport)

Implementations

impl InetSocketAddrExt[src]

pub fn tcp(address: InetAddr, port: u16) -> InetSocketAddrExt[src]

Constructs InetSocketAddrExt for a given internet address and TCP port

pub fn udp(address: InetAddr, port: u16) -> InetSocketAddrExt[src]

Constructs InetSocketAddrExt for a given internet address and UDP port

Trait Implementations

impl Clone for InetSocketAddrExt[src]

impl Copy for InetSocketAddrExt[src]

impl Debug for InetSocketAddrExt[src]

impl Default for InetSocketAddrExt[src]

impl Display for InetSocketAddrExt[src]

impl Eq for InetSocketAddrExt[src]

impl FromStr for InetSocketAddrExt[src]

type Err = AddrParseError

The associated error which can be returned from parsing.

impl Hash for InetSocketAddrExt[src]

impl Ord for InetSocketAddrExt[src]

impl PartialEq<InetSocketAddrExt> for InetSocketAddrExt[src]

impl PartialOrd<InetSocketAddrExt> for InetSocketAddrExt[src]

impl Strategy for InetSocketAddrExt[src]

impl Strategy for InetSocketAddrExt[src]

impl StructuralEq for InetSocketAddrExt[src]

impl StructuralPartialEq for InetSocketAddrExt[src]

impl<'_> TryFrom<&'_ str> for InetSocketAddrExt[src]

type Error = <InetSocketAddrExt as FromStr>::Err

The type returned in the event of a conversion error.

impl Uniform for InetSocketAddrExt[src]

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,