pub struct Ipv6AddrExt { /* private fields */ }Implementations§
Source§impl Ipv6AddrExt
impl Ipv6AddrExt
Sourcepub fn new(
a: u16,
b: u16,
c: u16,
d: u16,
e: u16,
f: u16,
g: u16,
h: u16,
) -> Ipv6AddrExt
pub fn new( a: u16, b: u16, c: u16, d: u16, e: u16, f: u16, g: u16, h: u16, ) -> Ipv6AddrExt
Creates a new IPv6 address from eight 16-bit segments.
Sourcepub fn node_multicast(&self) -> Ipv6Addr
pub fn node_multicast(&self) -> Ipv6Addr
Returns the node local scope multicast addr of this Ipv6.
Sourcepub fn link_multicast(&self) -> Ipv6Addr
pub fn link_multicast(&self) -> Ipv6Addr
Returns the link local scope multicast addr of this Ipv6.
Sourcepub fn site_multicast(&self) -> Ipv6Addr
pub fn site_multicast(&self) -> Ipv6Addr
Returns the site local scope multicast addr of this Ipv6.
pub fn largest_identical_prefix<T: Into<Ipv6AddrExt>>(&self, target: T) -> u8
Trait Implementations§
Source§impl Clone for Ipv6AddrExt
impl Clone for Ipv6AddrExt
Source§fn clone(&self) -> Ipv6AddrExt
fn clone(&self) -> Ipv6AddrExt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Ipv6AddrExt
impl Debug for Ipv6AddrExt
Source§impl Display for Ipv6AddrExt
impl Display for Ipv6AddrExt
Source§impl From<Ipv6Addr> for Ipv6AddrExt
impl From<Ipv6Addr> for Ipv6AddrExt
Source§impl From<Ipv6AddrExt> for Ipv6Addr
impl From<Ipv6AddrExt> for Ipv6Addr
Source§fn from(addr: Ipv6AddrExt) -> Self
fn from(addr: Ipv6AddrExt) -> Self
Converts to this type from the input type.
Source§impl FromStr for Ipv6AddrExt
impl FromStr for Ipv6AddrExt
impl Copy for Ipv6AddrExt
Auto Trait Implementations§
impl Freeze for Ipv6AddrExt
impl RefUnwindSafe for Ipv6AddrExt
impl Send for Ipv6AddrExt
impl Sync for Ipv6AddrExt
impl Unpin for Ipv6AddrExt
impl UnwindSafe for Ipv6AddrExt
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