#[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.
Trait Implementations§
impl Copy for Ipv6Addr
Auto Trait Implementations§
impl Freeze for Ipv6Addr
impl RefUnwindSafe for Ipv6Addr
impl Send for Ipv6Addr
impl Sync for Ipv6Addr
impl Unpin for Ipv6Addr
impl UnwindSafe for Ipv6Addr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more