Struct net_types::LinkLocalAddr
source · 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>
§type V4 = LinkLocalAddr<Ipv4Addr>
type V4 = LinkLocalAddr<Ipv4Addr>
Self
. Read more§type V6 = LinkLocalAddr<Ipv6Addr>
type V6 = LinkLocalAddr<Ipv6Addr>
Self
. Read moresource§impl<A: IpAddress> IpAddressWitness<A> for LinkLocalAddr<A>
impl<A: IpAddress> IpAddressWitness<A> for LinkLocalAddr<A>
§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§fn eq(&self, other: &LinkLocalAddr<A>) -> bool
fn eq(&self, other: &LinkLocalAddr<A>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<A: PartialOrd> PartialOrd for LinkLocalAddr<A>
impl<A: PartialOrd> PartialOrd for LinkLocalAddr<A>
source§fn partial_cmp(&self, other: &LinkLocalAddr<A>) -> Option<Ordering>
fn partial_cmp(&self, other: &LinkLocalAddr<A>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§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>
§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§fn try_from(addr: BroadcastAddr<A>) -> Result<LinkLocalAddr<A>, ()>
fn try_from(addr: BroadcastAddr<A>) -> Result<LinkLocalAddr<A>, ()>
source§impl<A: LinkLocalAddress + BroadcastAddress> TryFrom<LinkLocalAddr<A>> for BroadcastAddr<A>
impl<A: LinkLocalAddress + BroadcastAddress> TryFrom<LinkLocalAddr<A>> for BroadcastAddr<A>
source§fn try_from(addr: LinkLocalAddr<A>) -> Result<BroadcastAddr<A>, ()>
fn try_from(addr: LinkLocalAddr<A>) -> Result<BroadcastAddr<A>, ()>
source§impl<A: LinkLocalAddress + MulticastAddress> TryFrom<LinkLocalAddr<A>> for MulticastAddr<A>
impl<A: LinkLocalAddress + MulticastAddress> TryFrom<LinkLocalAddr<A>> for MulticastAddr<A>
source§fn try_from(addr: LinkLocalAddr<A>) -> Result<MulticastAddr<A>, ()>
fn try_from(addr: LinkLocalAddr<A>) -> Result<MulticastAddr<A>, ()>
source§impl<A: LinkLocalAddress + MappedAddress> TryFrom<LinkLocalAddr<A>> for NonMappedAddr<A>
impl<A: LinkLocalAddress + MappedAddress> TryFrom<LinkLocalAddr<A>> for NonMappedAddr<A>
source§fn try_from(addr: LinkLocalAddr<A>) -> Result<NonMappedAddr<A>, ()>
fn try_from(addr: LinkLocalAddr<A>) -> Result<NonMappedAddr<A>, ()>
source§impl<A: LinkLocalAddress + UnicastAddress> TryFrom<LinkLocalAddr<A>> for UnicastAddr<A>
impl<A: LinkLocalAddress + UnicastAddress> TryFrom<LinkLocalAddr<A>> for UnicastAddr<A>
source§fn try_from(addr: LinkLocalAddr<A>) -> Result<UnicastAddr<A>, ()>
fn try_from(addr: LinkLocalAddr<A>) -> Result<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§fn try_from(addr: LinkLocalBroadcastAddr<A>) -> Result<LinkLocalAddr<A>, ()>
fn try_from(addr: LinkLocalBroadcastAddr<A>) -> Result<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§fn try_from(
addr: LinkLocalBroadcastAddr<A>,
) -> Result<LinkLocalMulticastAddr<A>, ()>
fn try_from( addr: LinkLocalBroadcastAddr<A>, ) -> Result<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§fn try_from(
addr: LinkLocalBroadcastAddr<A>,
) -> Result<LinkLocalUnicastAddr<A>, ()>
fn try_from( addr: LinkLocalBroadcastAddr<A>, ) -> Result<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§fn try_from(addr: LinkLocalBroadcastAddr<A>) -> Result<MulticastAddr<A>, ()>
fn try_from(addr: LinkLocalBroadcastAddr<A>) -> Result<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§fn try_from(addr: LinkLocalBroadcastAddr<A>) -> Result<UnicastAddr<A>, ()>
fn try_from(addr: LinkLocalBroadcastAddr<A>) -> Result<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§fn try_from(addr: LinkLocalMulticastAddr<A>) -> Result<LinkLocalAddr<A>, ()>
fn try_from(addr: LinkLocalMulticastAddr<A>) -> Result<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§fn try_from(
addr: LinkLocalMulticastAddr<A>,
) -> Result<LinkLocalBroadcastAddr<A>, ()>
fn try_from( addr: LinkLocalMulticastAddr<A>, ) -> Result<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§fn try_from(
addr: LinkLocalMulticastAddr<A>,
) -> Result<LinkLocalUnicastAddr<A>, ()>
fn try_from( addr: LinkLocalMulticastAddr<A>, ) -> Result<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§fn try_from(addr: LinkLocalMulticastAddr<A>) -> Result<MulticastAddr<A>, ()>
fn try_from(addr: LinkLocalMulticastAddr<A>) -> Result<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§fn try_from(addr: LinkLocalMulticastAddr<A>) -> Result<UnicastAddr<A>, ()>
fn try_from(addr: LinkLocalMulticastAddr<A>) -> Result<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§fn try_from(addr: LinkLocalUnicastAddr<A>) -> Result<LinkLocalAddr<A>, ()>
fn try_from(addr: LinkLocalUnicastAddr<A>) -> Result<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§fn try_from(
addr: LinkLocalUnicastAddr<A>,
) -> Result<LinkLocalBroadcastAddr<A>, ()>
fn try_from( addr: LinkLocalUnicastAddr<A>, ) -> Result<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§fn try_from(
addr: LinkLocalUnicastAddr<A>,
) -> Result<LinkLocalMulticastAddr<A>, ()>
fn try_from( addr: LinkLocalUnicastAddr<A>, ) -> Result<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§fn try_from(addr: LinkLocalUnicastAddr<A>) -> Result<MulticastAddr<A>, ()>
fn try_from(addr: LinkLocalUnicastAddr<A>) -> Result<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§fn try_from(addr: LinkLocalUnicastAddr<A>) -> Result<UnicastAddr<A>, ()>
fn try_from(addr: LinkLocalUnicastAddr<A>) -> Result<UnicastAddr<A>, ()>
source§impl<A: MulticastAddress + LinkLocalAddress> TryFrom<MulticastAddr<A>> for LinkLocalAddr<A>
impl<A: MulticastAddress + LinkLocalAddress> TryFrom<MulticastAddr<A>> for LinkLocalAddr<A>
source§fn try_from(addr: MulticastAddr<A>) -> Result<LinkLocalAddr<A>, ()>
fn try_from(addr: MulticastAddr<A>) -> Result<LinkLocalAddr<A>, ()>
source§impl<A: MappedAddress + LinkLocalAddress> TryFrom<NonMappedAddr<A>> for LinkLocalAddr<A>
impl<A: MappedAddress + LinkLocalAddress> TryFrom<NonMappedAddr<A>> for LinkLocalAddr<A>
source§fn try_from(addr: NonMappedAddr<A>) -> Result<LinkLocalAddr<A>, ()>
fn try_from(addr: NonMappedAddr<A>) -> Result<LinkLocalAddr<A>, ()>
source§impl<A: SpecifiedAddress + LinkLocalAddress> TryFrom<SpecifiedAddr<A>> for LinkLocalAddr<A>
impl<A: SpecifiedAddress + LinkLocalAddress> TryFrom<SpecifiedAddr<A>> for LinkLocalAddr<A>
source§fn try_from(addr: SpecifiedAddr<A>) -> Result<LinkLocalAddr<A>, ()>
fn try_from(addr: SpecifiedAddr<A>) -> Result<LinkLocalAddr<A>, ()>
source§impl<A: UnicastAddress + LinkLocalAddress> TryFrom<UnicastAddr<A>> for LinkLocalAddr<A>
impl<A: UnicastAddress + LinkLocalAddress> TryFrom<UnicastAddr<A>> for LinkLocalAddr<A>
source§fn try_from(addr: UnicastAddr<A>) -> Result<LinkLocalAddr<A>, ()>
fn try_from(addr: UnicastAddr<A>) -> Result<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§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§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§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 moreimpl<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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
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)
clone_to_uninit
)