pub struct LinkLocalAddr<A>(/* private fields */);
Expand description
An address which is guaranteed to be link-local.
LinkLocalAddr
wraps an address of type A
and guarantees that it is
a link-local address. Note that this guarantee is contingent on a correct
implementation of the LinkLocalAddress
trait. Since that trait is
not unsafe
, unsafe
code may NOT rely on this guarantee for its soundness.
Implementations§
Source§impl<A: LinkLocalAddress> LinkLocalAddr<A>
impl<A: LinkLocalAddress> LinkLocalAddr<A>
Sourcepub fn new(addr: A) -> Option<LinkLocalAddr<A>>
pub fn new(addr: A) -> Option<LinkLocalAddr<A>>
Constructs a new LinkLocalAddr
.
new
returns None
if !addr.is_link_local()
.
Sourcepub fn from_witness<W: Witness<A>>(addr: W) -> Option<LinkLocalAddr<A>>
pub fn from_witness<W: Witness<A>>(addr: W) -> Option<LinkLocalAddr<A>>
Constructs a new LinkLocalAddr
from a
witness type.
from_witness(witness)
is equivalent to new(witness.into_addr())
.
Source§impl<A> LinkLocalAddr<A>
impl<A> LinkLocalAddr<A>
Sourcepub const unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<A>
pub const unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<A>
Constructs a new LinkLocalAddr
without
checking to see if addr
is actually link-local.
§Safety
It is up to the caller to make sure that addr
is link-local to avoid breaking
the guarantees of LinkLocalAddr
. See LinkLocalAddr
for
more details.
Source§impl<A: LinkLocalAddress + SpecifiedAddress> LinkLocalAddr<A>
impl<A: LinkLocalAddress + SpecifiedAddress> LinkLocalAddr<A>
Sourcepub fn into_specified(self) -> SpecifiedAddr<A>
pub fn into_specified(self) -> SpecifiedAddr<A>
Converts this LinkLocalAddr
into a
SpecifiedAddr
.
LinkLocalAddress::is_link_local
implies
SpecifiedAddress::is_specified
, so all LinkLocalAddr
s are
guaranteed to be specified, so this conversion is infallible.
Trait Implementations§
Source§impl<A: LinkLocalAddress> AsRef<A> for LinkLocalAddr<A>
impl<A: LinkLocalAddress> AsRef<A> for LinkLocalAddr<A>
Source§impl<A: LinkLocalAddress + BroadcastAddress> AsRef<A> for LinkLocalAddr<BroadcastAddr<A>>
impl<A: LinkLocalAddress + BroadcastAddress> AsRef<A> for LinkLocalAddr<BroadcastAddr<A>>
Source§impl<A: LinkLocalAddress + MulticastAddress> AsRef<A> for LinkLocalAddr<MulticastAddr<A>>
impl<A: LinkLocalAddress + MulticastAddress> AsRef<A> for LinkLocalAddr<MulticastAddr<A>>
Source§impl<A: LinkLocalAddress + MappedAddress> AsRef<A> for LinkLocalAddr<NonMappedAddr<A>>
impl<A: LinkLocalAddress + MappedAddress> AsRef<A> for LinkLocalAddr<NonMappedAddr<A>>
Source§impl<A: LinkLocalAddress + UnicastAddress> AsRef<A> for LinkLocalAddr<UnicastAddr<A>>
impl<A: LinkLocalAddress + UnicastAddress> AsRef<A> for LinkLocalAddr<UnicastAddr<A>>
Source§impl<A: LinkLocalAddress> AsRef<LinkLocalAddr<A>> for LinkLocalAddr<A>
impl<A: LinkLocalAddress> AsRef<LinkLocalAddr<A>> for LinkLocalAddr<A>
Source§fn as_ref(&self) -> &LinkLocalAddr<A>
fn as_ref(&self) -> &LinkLocalAddr<A>
Source§impl<A: BroadcastAddress> BroadcastAddress for LinkLocalAddr<A>
impl<A: BroadcastAddress> BroadcastAddress for LinkLocalAddr<A>
Source§fn is_broadcast(&self) -> bool
fn is_broadcast(&self) -> bool
Source§impl<A: Clone> Clone for LinkLocalAddr<A>
impl<A: Clone> Clone for LinkLocalAddr<A>
Source§fn clone(&self) -> LinkLocalAddr<A>
fn clone(&self) -> LinkLocalAddr<A>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<A: Debug> Debug for LinkLocalAddr<A>
impl<A: Debug> Debug for LinkLocalAddr<A>
Source§impl<A: LinkLocalAddress> Deref for LinkLocalAddr<A>
impl<A: LinkLocalAddress> Deref for LinkLocalAddr<A>
Source§impl<A: Display> Display for LinkLocalAddr<A>
impl<A: Display> Display for LinkLocalAddr<A>
Source§impl From<IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>> for LinkLocalAddr<IpAddr>
impl From<IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>> for LinkLocalAddr<IpAddr>
Source§fn from(
addr: IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>,
) -> LinkLocalAddr<IpAddr>
fn from( addr: IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>, ) -> LinkLocalAddr<IpAddr>
Source§impl<A: IpAddress> From<LinkLocalAddr<A>> for IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>
impl<A: IpAddress> From<LinkLocalAddr<A>> for IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>
Source§fn from(
addr: LinkLocalAddr<A>,
) -> IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>
fn from( addr: LinkLocalAddr<A>, ) -> IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>
Source§impl<A: Into<Ipv4Addr> + LinkLocalAddress + Copy> From<LinkLocalAddr<A>> for Ipv4Addr
impl<A: Into<Ipv4Addr> + LinkLocalAddress + Copy> From<LinkLocalAddr<A>> for Ipv4Addr
Source§fn from(addr: LinkLocalAddr<A>) -> Ipv4Addr
fn from(addr: LinkLocalAddr<A>) -> Ipv4Addr
Source§impl<A: Into<Ipv6Addr> + LinkLocalAddress + Copy> From<LinkLocalAddr<A>> for Ipv6Addr
impl<A: Into<Ipv6Addr> + LinkLocalAddress + Copy> From<LinkLocalAddr<A>> for Ipv6Addr
Source§fn from(addr: LinkLocalAddr<A>) -> Ipv6Addr
fn from(addr: LinkLocalAddr<A>) -> Ipv6Addr
Source§impl<A: IpAddress> From<LinkLocalAddr<A>> for LinkLocalAddr<IpAddr>
impl<A: IpAddress> From<LinkLocalAddr<A>> for LinkLocalAddr<IpAddr>
Source§fn from(addr: LinkLocalAddr<A>) -> LinkLocalAddr<IpAddr>
fn from(addr: LinkLocalAddr<A>) -> LinkLocalAddr<IpAddr>
Source§impl<A: LinkLocalAddress + SpecifiedAddress> From<LinkLocalAddr<A>> for SpecifiedAddr<A>
impl<A: LinkLocalAddress + SpecifiedAddress> From<LinkLocalAddr<A>> for SpecifiedAddr<A>
Source§fn from(addr: LinkLocalAddr<A>) -> SpecifiedAddr<A>
fn from(addr: LinkLocalAddr<A>) -> SpecifiedAddr<A>
Source§impl<A: LinkLocalAddress + BroadcastAddress + SpecifiedAddress> From<LinkLocalAddr<BroadcastAddr<A>>> for SpecifiedAddr<A>
impl<A: LinkLocalAddress + BroadcastAddress + SpecifiedAddress> From<LinkLocalAddr<BroadcastAddr<A>>> for SpecifiedAddr<A>
Source§fn from(addr: LinkLocalAddr<BroadcastAddr<A>>) -> SpecifiedAddr<A>
fn from(addr: LinkLocalAddr<BroadcastAddr<A>>) -> SpecifiedAddr<A>
Source§impl From<LinkLocalAddr<IpAddr>> for IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>
impl From<LinkLocalAddr<IpAddr>> for IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>
Source§fn from(
addr: LinkLocalAddr<IpAddr>,
) -> IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>
fn from( addr: LinkLocalAddr<IpAddr>, ) -> IpAddr<LinkLocalAddr<Ipv4Addr>, LinkLocalAddr<Ipv6Addr>>
Source§impl<A: LinkLocalAddress + MulticastAddress + SpecifiedAddress> From<LinkLocalAddr<MulticastAddr<A>>> for SpecifiedAddr<A>
impl<A: LinkLocalAddress + MulticastAddress + SpecifiedAddress> From<LinkLocalAddr<MulticastAddr<A>>> for SpecifiedAddr<A>
Source§fn from(addr: LinkLocalAddr<MulticastAddr<A>>) -> SpecifiedAddr<A>
fn from(addr: LinkLocalAddr<MulticastAddr<A>>) -> SpecifiedAddr<A>
Source§impl<A: LinkLocalAddress + MappedAddress + SpecifiedAddress> From<LinkLocalAddr<NonMappedAddr<A>>> for SpecifiedAddr<A>
impl<A: LinkLocalAddress + MappedAddress + SpecifiedAddress> From<LinkLocalAddr<NonMappedAddr<A>>> for SpecifiedAddr<A>
Source§fn from(addr: LinkLocalAddr<NonMappedAddr<A>>) -> SpecifiedAddr<A>
fn from(addr: LinkLocalAddr<NonMappedAddr<A>>) -> SpecifiedAddr<A>
Source§impl<A: LinkLocalAddress + UnicastAddress + SpecifiedAddress> From<LinkLocalAddr<UnicastAddr<A>>> for SpecifiedAddr<A>
impl<A: LinkLocalAddress + UnicastAddress + SpecifiedAddress> From<LinkLocalAddr<UnicastAddr<A>>> for SpecifiedAddr<A>
Source§fn from(addr: LinkLocalAddr<UnicastAddr<A>>) -> SpecifiedAddr<A>
fn from(addr: LinkLocalAddr<UnicastAddr<A>>) -> SpecifiedAddr<A>
Source§impl<A: Hash> Hash for LinkLocalAddr<A>
impl<A: Hash> Hash for LinkLocalAddr<A>
Source§impl IpAddrWitness for LinkLocalAddr<IpAddr>
impl IpAddrWitness for LinkLocalAddr<IpAddr>
Source§impl<A: IpAddress> IpAddressWitness<A> for LinkLocalAddr<A>
impl<A: IpAddress> IpAddressWitness<A> for LinkLocalAddr<A>
Source§type IpAddrWitness = LinkLocalAddr<IpAddr>
type IpAddrWitness = LinkLocalAddr<IpAddr>
Self
. Read moreSource§impl<A: MappedAddress> MappedAddress for LinkLocalAddr<A>
impl<A: MappedAddress> MappedAddress for LinkLocalAddr<A>
Source§fn is_non_mapped(&self) -> bool
fn is_non_mapped(&self) -> bool
Source§impl<A: MulticastAddress> MulticastAddress for LinkLocalAddr<A>
impl<A: MulticastAddress> MulticastAddress for LinkLocalAddr<A>
Source§fn is_multicast(&self) -> bool
fn is_multicast(&self) -> bool
Source§fn is_non_multicast(&self) -> bool
fn is_non_multicast(&self) -> bool
is_multicast()
.Source§impl<A: Ord> Ord for LinkLocalAddr<A>
impl<A: Ord> Ord for LinkLocalAddr<A>
Source§fn cmp(&self, other: &LinkLocalAddr<A>) -> Ordering
fn cmp(&self, other: &LinkLocalAddr<A>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<A: PartialEq> PartialEq for LinkLocalAddr<A>
impl<A: PartialEq> PartialEq for LinkLocalAddr<A>
Source§impl<A: PartialOrd> PartialOrd for LinkLocalAddr<A>
impl<A: PartialOrd> PartialOrd for LinkLocalAddr<A>
Source§impl<A: ScopeableAddress> ScopeableAddress for LinkLocalAddr<A>
impl<A: ScopeableAddress> ScopeableAddress for LinkLocalAddr<A>
Source§impl<A: SpecifiedAddress> SpecifiedAddress for LinkLocalAddr<A>
impl<A: SpecifiedAddress> SpecifiedAddress for LinkLocalAddr<A>
Source§fn is_specified(&self) -> bool
fn is_specified(&self) -> bool
Source§impl<A: LinkLocalAddress> TransposableWitness<A> for LinkLocalAddr<A>
impl<A: LinkLocalAddress> TransposableWitness<A> for LinkLocalAddr<A>
Source§type Map<T> = LinkLocalAddr<T>
type Map<T> = LinkLocalAddr<T>
Source§impl<A: BroadcastAddress + LinkLocalAddress> TryFrom<BroadcastAddr<A>> for LinkLocalAddr<A>
impl<A: BroadcastAddress + LinkLocalAddress> TryFrom<BroadcastAddr<A>> for LinkLocalAddr<A>
Source§impl<A: LinkLocalAddress + BroadcastAddress> TryFrom<LinkLocalAddr<A>> for BroadcastAddr<A>
impl<A: LinkLocalAddress + BroadcastAddress> TryFrom<LinkLocalAddr<A>> for BroadcastAddr<A>
Source§impl<A: LinkLocalAddress + MulticastAddress> TryFrom<LinkLocalAddr<A>> for MulticastAddr<A>
impl<A: LinkLocalAddress + MulticastAddress> TryFrom<LinkLocalAddr<A>> for MulticastAddr<A>
Source§impl<A: LinkLocalAddress + MappedAddress> TryFrom<LinkLocalAddr<A>> for NonMappedAddr<A>
impl<A: LinkLocalAddress + MappedAddress> TryFrom<LinkLocalAddr<A>> for NonMappedAddr<A>
Source§impl<A: LinkLocalAddress + UnicastAddress> TryFrom<LinkLocalAddr<A>> for UnicastAddr<A>
impl<A: LinkLocalAddress + UnicastAddress> TryFrom<LinkLocalAddr<A>> for UnicastAddr<A>
Source§impl<A: LinkLocalBroadcastAddress + LinkLocalAddress> TryFrom<LinkLocalAddr<BroadcastAddr<A>>> for LinkLocalAddr<A>
impl<A: LinkLocalBroadcastAddress + LinkLocalAddress> TryFrom<LinkLocalAddr<BroadcastAddr<A>>> for LinkLocalAddr<A>
Source§impl<A: LinkLocalBroadcastAddress + LinkLocalMulticastAddress> TryFrom<LinkLocalAddr<BroadcastAddr<A>>> for LinkLocalMulticastAddr<A>
impl<A: LinkLocalBroadcastAddress + LinkLocalMulticastAddress> TryFrom<LinkLocalAddr<BroadcastAddr<A>>> for LinkLocalMulticastAddr<A>
Source§impl<A: LinkLocalBroadcastAddress + LinkLocalUnicastAddress> TryFrom<LinkLocalAddr<BroadcastAddr<A>>> for LinkLocalUnicastAddr<A>
impl<A: LinkLocalBroadcastAddress + LinkLocalUnicastAddress> TryFrom<LinkLocalAddr<BroadcastAddr<A>>> for LinkLocalUnicastAddr<A>
Source§impl<A: LinkLocalBroadcastAddress + MulticastAddress> TryFrom<LinkLocalAddr<BroadcastAddr<A>>> for MulticastAddr<A>
impl<A: LinkLocalBroadcastAddress + MulticastAddress> TryFrom<LinkLocalAddr<BroadcastAddr<A>>> for MulticastAddr<A>
Source§impl<A: LinkLocalBroadcastAddress + UnicastAddress> TryFrom<LinkLocalAddr<BroadcastAddr<A>>> for UnicastAddr<A>
impl<A: LinkLocalBroadcastAddress + UnicastAddress> TryFrom<LinkLocalAddr<BroadcastAddr<A>>> for UnicastAddr<A>
Source§impl<A: LinkLocalMulticastAddress + LinkLocalAddress> TryFrom<LinkLocalAddr<MulticastAddr<A>>> for LinkLocalAddr<A>
impl<A: LinkLocalMulticastAddress + LinkLocalAddress> TryFrom<LinkLocalAddr<MulticastAddr<A>>> for LinkLocalAddr<A>
Source§impl<A: LinkLocalMulticastAddress + LinkLocalBroadcastAddress> TryFrom<LinkLocalAddr<MulticastAddr<A>>> for LinkLocalBroadcastAddr<A>
impl<A: LinkLocalMulticastAddress + LinkLocalBroadcastAddress> TryFrom<LinkLocalAddr<MulticastAddr<A>>> for LinkLocalBroadcastAddr<A>
Source§impl<A: LinkLocalMulticastAddress + LinkLocalUnicastAddress> TryFrom<LinkLocalAddr<MulticastAddr<A>>> for LinkLocalUnicastAddr<A>
impl<A: LinkLocalMulticastAddress + LinkLocalUnicastAddress> TryFrom<LinkLocalAddr<MulticastAddr<A>>> for LinkLocalUnicastAddr<A>
Source§impl<A: LinkLocalMulticastAddress + MulticastAddress> TryFrom<LinkLocalAddr<MulticastAddr<A>>> for MulticastAddr<A>
impl<A: LinkLocalMulticastAddress + MulticastAddress> TryFrom<LinkLocalAddr<MulticastAddr<A>>> for MulticastAddr<A>
Source§impl<A: LinkLocalMulticastAddress + UnicastAddress> TryFrom<LinkLocalAddr<MulticastAddr<A>>> for UnicastAddr<A>
impl<A: LinkLocalMulticastAddress + UnicastAddress> TryFrom<LinkLocalAddr<MulticastAddr<A>>> for UnicastAddr<A>
Source§impl<A: LinkLocalUnicastAddress + LinkLocalAddress> TryFrom<LinkLocalAddr<UnicastAddr<A>>> for LinkLocalAddr<A>
impl<A: LinkLocalUnicastAddress + LinkLocalAddress> TryFrom<LinkLocalAddr<UnicastAddr<A>>> for LinkLocalAddr<A>
Source§impl<A: LinkLocalUnicastAddress + LinkLocalBroadcastAddress> TryFrom<LinkLocalAddr<UnicastAddr<A>>> for LinkLocalBroadcastAddr<A>
impl<A: LinkLocalUnicastAddress + LinkLocalBroadcastAddress> TryFrom<LinkLocalAddr<UnicastAddr<A>>> for LinkLocalBroadcastAddr<A>
Source§impl<A: LinkLocalUnicastAddress + LinkLocalMulticastAddress> TryFrom<LinkLocalAddr<UnicastAddr<A>>> for LinkLocalMulticastAddr<A>
impl<A: LinkLocalUnicastAddress + LinkLocalMulticastAddress> TryFrom<LinkLocalAddr<UnicastAddr<A>>> for LinkLocalMulticastAddr<A>
Source§impl<A: LinkLocalUnicastAddress + MulticastAddress> TryFrom<LinkLocalAddr<UnicastAddr<A>>> for MulticastAddr<A>
impl<A: LinkLocalUnicastAddress + MulticastAddress> TryFrom<LinkLocalAddr<UnicastAddr<A>>> for MulticastAddr<A>
Source§impl<A: LinkLocalUnicastAddress + UnicastAddress> TryFrom<LinkLocalAddr<UnicastAddr<A>>> for UnicastAddr<A>
impl<A: LinkLocalUnicastAddress + UnicastAddress> TryFrom<LinkLocalAddr<UnicastAddr<A>>> for UnicastAddr<A>
Source§impl<A: MulticastAddress + LinkLocalAddress> TryFrom<MulticastAddr<A>> for LinkLocalAddr<A>
impl<A: MulticastAddress + LinkLocalAddress> TryFrom<MulticastAddr<A>> for LinkLocalAddr<A>
Source§impl<A: MappedAddress + LinkLocalAddress> TryFrom<NonMappedAddr<A>> for LinkLocalAddr<A>
impl<A: MappedAddress + LinkLocalAddress> TryFrom<NonMappedAddr<A>> for LinkLocalAddr<A>
Source§impl<A: SpecifiedAddress + LinkLocalAddress> TryFrom<SpecifiedAddr<A>> for LinkLocalAddr<A>
impl<A: SpecifiedAddress + LinkLocalAddress> TryFrom<SpecifiedAddr<A>> for LinkLocalAddr<A>
Source§impl<A: UnicastAddress + LinkLocalAddress> TryFrom<UnicastAddr<A>> for LinkLocalAddr<A>
impl<A: UnicastAddress + LinkLocalAddress> TryFrom<UnicastAddr<A>> for LinkLocalAddr<A>
Source§impl<A: UnicastAddress> UnicastAddress for LinkLocalAddr<A>
impl<A: UnicastAddress> UnicastAddress for LinkLocalAddr<A>
Source§fn is_unicast(&self) -> bool
fn is_unicast(&self) -> bool
Source§impl<A: LinkLocalAddress> Witness<A> for LinkLocalAddr<A>
impl<A: LinkLocalAddress> Witness<A> for LinkLocalAddr<A>
Source§unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<A>
unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<A>
addr
actually
satisfies the required property. Read moreSource§fn from_witness<W: Witness<A>>(addr: W) -> Option<Self>
fn from_witness<W: Witness<A>>(addr: W) -> Option<Self>
Source§fn transpose<T>(self) -> A::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
A::Map<Self::Map<T>>: Witness<Self::Map<T>>,
fn transpose<T>(self) -> A::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
A::Map<Self::Map<T>>: Witness<Self::Map<T>>,
Source§impl<A: LinkLocalAddress + BroadcastAddress> Witness<A> for LinkLocalAddr<BroadcastAddr<A>>
impl<A: LinkLocalAddress + BroadcastAddress> Witness<A> for LinkLocalAddr<BroadcastAddr<A>>
Source§fn new(addr: A) -> Option<LinkLocalAddr<BroadcastAddr<A>>>
fn new(addr: A) -> Option<LinkLocalAddr<BroadcastAddr<A>>>
Source§unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<BroadcastAddr<A>>
unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<BroadcastAddr<A>>
addr
actually
satisfies the required property. Read moreSource§fn from_witness<W: Witness<A>>(addr: W) -> Option<Self>
fn from_witness<W: Witness<A>>(addr: W) -> Option<Self>
Source§fn transpose<T>(self) -> A::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
A::Map<Self::Map<T>>: Witness<Self::Map<T>>,
fn transpose<T>(self) -> A::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
A::Map<Self::Map<T>>: Witness<Self::Map<T>>,
Source§impl<A: LinkLocalAddress + MulticastAddress> Witness<A> for LinkLocalAddr<MulticastAddr<A>>
impl<A: LinkLocalAddress + MulticastAddress> Witness<A> for LinkLocalAddr<MulticastAddr<A>>
Source§fn new(addr: A) -> Option<LinkLocalAddr<MulticastAddr<A>>>
fn new(addr: A) -> Option<LinkLocalAddr<MulticastAddr<A>>>
Source§unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<MulticastAddr<A>>
unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<MulticastAddr<A>>
addr
actually
satisfies the required property. Read moreSource§fn from_witness<W: Witness<A>>(addr: W) -> Option<Self>
fn from_witness<W: Witness<A>>(addr: W) -> Option<Self>
Source§fn transpose<T>(self) -> A::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
A::Map<Self::Map<T>>: Witness<Self::Map<T>>,
fn transpose<T>(self) -> A::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
A::Map<Self::Map<T>>: Witness<Self::Map<T>>,
Source§impl<A: LinkLocalAddress + MappedAddress> Witness<A> for LinkLocalAddr<NonMappedAddr<A>>
impl<A: LinkLocalAddress + MappedAddress> Witness<A> for LinkLocalAddr<NonMappedAddr<A>>
Source§fn new(addr: A) -> Option<LinkLocalAddr<NonMappedAddr<A>>>
fn new(addr: A) -> Option<LinkLocalAddr<NonMappedAddr<A>>>
Source§unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<NonMappedAddr<A>>
unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<NonMappedAddr<A>>
addr
actually
satisfies the required property. Read moreSource§fn from_witness<W: Witness<A>>(addr: W) -> Option<Self>
fn from_witness<W: Witness<A>>(addr: W) -> Option<Self>
Source§fn transpose<T>(self) -> A::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
A::Map<Self::Map<T>>: Witness<Self::Map<T>>,
fn transpose<T>(self) -> A::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
A::Map<Self::Map<T>>: Witness<Self::Map<T>>,
Source§impl<A: LinkLocalAddress + UnicastAddress> Witness<A> for LinkLocalAddr<UnicastAddr<A>>
impl<A: LinkLocalAddress + UnicastAddress> Witness<A> for LinkLocalAddr<UnicastAddr<A>>
Source§fn new(addr: A) -> Option<LinkLocalAddr<UnicastAddr<A>>>
fn new(addr: A) -> Option<LinkLocalAddr<UnicastAddr<A>>>
Source§unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<UnicastAddr<A>>
unsafe fn new_unchecked(addr: A) -> LinkLocalAddr<UnicastAddr<A>>
addr
actually
satisfies the required property. Read moreSource§fn from_witness<W: Witness<A>>(addr: W) -> Option<Self>
fn from_witness<W: Witness<A>>(addr: W) -> Option<Self>
Source§fn transpose<T>(self) -> A::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
A::Map<Self::Map<T>>: Witness<Self::Map<T>>,
fn transpose<T>(self) -> A::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
A::Map<Self::Map<T>>: Witness<Self::Map<T>>,
impl<A: Copy> Copy for LinkLocalAddr<A>
impl<A: Eq> Eq for LinkLocalAddr<A>
impl<A> StructuralPartialEq for LinkLocalAddr<A>
Auto Trait Implementations§
impl<A> Freeze for LinkLocalAddr<A>where
A: Freeze,
impl<A> RefUnwindSafe for LinkLocalAddr<A>where
A: RefUnwindSafe,
impl<A> Send for LinkLocalAddr<A>where
A: Send,
impl<A> Sync for LinkLocalAddr<A>where
A: Sync,
impl<A> Unpin for LinkLocalAddr<A>where
A: Unpin,
impl<A> UnwindSafe for LinkLocalAddr<A>where
A: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)