Type Alias netstack3_base::socket::ConnInfoAddr

source ·
pub type ConnInfoAddr<A, RI> = ConnIpAddrInner<SpecifiedAddr<A>, NonZeroU16, RI>;
Expand description

The IP addresses (mapped if dual-stack) and identifiers (ports) of a connected socket.

Aliased Type§

struct ConnInfoAddr<A, RI> {
    pub local: (SpecifiedAddr<A>, NonZero<u16>),
    pub remote: (SpecifiedAddr<A>, RI),
}

Fields§

§local: (SpecifiedAddr<A>, NonZero<u16>)

The local address, port tuple.

§remote: (SpecifiedAddr<A>, RI)

The remote address, port tuple.

Trait Implementations§

source§

impl<LI: Into<NonZeroU16>, RI> From<DualStackConnIpAddr<Ipv6Addr, LI, RI>> for ConnInfoAddr<Ipv6Addr, RI>

source§

fn from(addr: DualStackConnIpAddr<Ipv6Addr, LI, RI>) -> Self

Converts to this type from the input type.