#[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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)