#[repr(C)]pub struct Ipv6Addr { /* private fields */ }
Expand description
Representation of an IPv6 host address.
Note that this isn’t an IPv6 socket address type; use SockAddrIpv6
to represent both the host address and port number for an IPv4 socket.
Implementations§
source§impl Ipv6Addr
impl Ipv6Addr
sourcepub const LINKLOCAL_ALLNODES: Self = _
pub const LINKLOCAL_ALLNODES: Self = _
Equivalent to the constant IN6ADDR_LINKLOCAL_ALLNODES_INIT
in C.
sourcepub const LINKLOCAL_ALLROUTERS: Self = _
pub const LINKLOCAL_ALLROUTERS: Self = _
Equivalent to the constant IN6ADDR_LINKLOCAL_ALLROUTERS_INIT
in C.
sourcepub const INTERFACELOCAL_ALLNODES: Self = _
pub const INTERFACELOCAL_ALLNODES: Self = _
Equivalent to the constant IN6ADDR_INTERFACELOCAL_ALLNODES_INIT
in C.
sourcepub const INTERFACELOCAL_ALLROUTERS: Self = _
pub const INTERFACELOCAL_ALLROUTERS: Self = _
Equivalent to the constant IN6ADDR_INTERFACELOCAL_ALLROUTERS_INIT
in C.
sourcepub const SITELOCAL_ALLROUTERS: Self = _
pub const SITELOCAL_ALLROUTERS: Self = _
Equivalent to the constant IN6ADDR_SITELOCAL_ALLROUTERS_INIT
in C.
sourcepub const fn from_octets(raw: [u8; 16]) -> Self
pub const fn from_octets(raw: [u8; 16]) -> Self
Constructs an Ipv6Addr
from the given octets which are interpreted
in network byte order, meaning that the first element corresponds with
the first decimal digit in the conventional four-segment dotted decimal
IP address representation.