pub type Ipv6DeviceAddr = NonMappedAddr<UnicastAddr<Ipv6Addr>>;
Expand description
An IPv6 address that witnesses properties needed to be assigned to a device.
Like IpDeviceAddr
but with stricter witnesses that are permitted for
IPv6 addresses.
Aliased Type§
struct Ipv6DeviceAddr(/* private fields */);
Implementations
Source§impl<A> NonMappedAddr<A>
impl<A> NonMappedAddr<A>
Sourcepub const unsafe fn new_unchecked(addr: A) -> NonMappedAddr<A>
pub const unsafe fn new_unchecked(addr: A) -> NonMappedAddr<A>
Constructs a new NonMappedAddr
without
checking to see if addr
is actually non_mapped.
§Safety
It is up to the caller to make sure that addr
is non_mapped to avoid breaking
the guarantees of NonMappedAddr
. See NonMappedAddr
for
more details.
Source§impl<A> NonMappedAddr<A>where
A: MappedAddress,
impl<A> NonMappedAddr<A>where
A: MappedAddress,
Sourcepub fn new(addr: A) -> Option<NonMappedAddr<A>>
pub fn new(addr: A) -> Option<NonMappedAddr<A>>
Constructs a new NonMappedAddr
.
new
returns None
if !addr.is_non_mapped()
.
Sourcepub fn from_witness<W>(addr: W) -> Option<NonMappedAddr<A>>where
W: Witness<A>,
pub fn from_witness<W>(addr: W) -> Option<NonMappedAddr<A>>where
W: Witness<A>,
Constructs a new NonMappedAddr
from a
witness type.
from_witness(witness)
is equivalent to new(witness.into_addr())
.
Trait Implementations
Source§impl<A> AsRef<A> for NonMappedAddr<A>where
A: MappedAddress,
impl<A> AsRef<A> for NonMappedAddr<A>where
A: MappedAddress,
Source§impl<A> AsRef<A> for NonMappedAddr<UnicastAddr<A>>where
A: MappedAddress + UnicastAddress,
impl<A> AsRef<A> for NonMappedAddr<UnicastAddr<A>>where
A: MappedAddress + UnicastAddress,
Source§impl<A> AsRef<NonMappedAddr<A>> for NonMappedAddr<A>where
A: MappedAddress,
impl<A> AsRef<NonMappedAddr<A>> for NonMappedAddr<A>where
A: MappedAddress,
Source§fn as_ref(&self) -> &NonMappedAddr<A>
fn as_ref(&self) -> &NonMappedAddr<A>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<A> BroadcastAddress for NonMappedAddr<A>where
A: BroadcastAddress,
impl<A> BroadcastAddress for NonMappedAddr<A>where
A: BroadcastAddress,
Source§fn is_broadcast(&self) -> bool
fn is_broadcast(&self) -> bool
Is this a broadcast address? Read more
Source§impl<A> Clone for NonMappedAddr<A>where
A: Clone,
impl<A> Clone for NonMappedAddr<A>where
A: Clone,
Source§fn clone(&self) -> NonMappedAddr<A>
fn clone(&self) -> NonMappedAddr<A>
Returns a copy 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<A> Debug for NonMappedAddr<A>where
A: Debug,
impl<A> Debug for NonMappedAddr<A>where
A: Debug,
Source§impl<A> Deref for NonMappedAddr<A>where
A: MappedAddress,
impl<A> Deref for NonMappedAddr<A>where
A: MappedAddress,
Source§impl<A> Display for NonMappedAddr<A>where
A: Display,
impl<A> Display for NonMappedAddr<A>where
A: Display,
Source§impl<A> Hash for NonMappedAddr<A>where
A: Hash,
impl<A> Hash for NonMappedAddr<A>where
A: Hash,
Source§impl<A> LinkLocalAddress for NonMappedAddr<A>where
A: LinkLocalAddress,
impl<A> LinkLocalAddress for NonMappedAddr<A>where
A: LinkLocalAddress,
Source§fn is_link_local(&self) -> bool
fn is_link_local(&self) -> bool
Is this a link-local address? Read more
Source§impl<A> MulticastAddress for NonMappedAddr<A>where
A: MulticastAddress,
impl<A> MulticastAddress for NonMappedAddr<A>where
A: MulticastAddress,
Source§fn is_multicast(&self) -> bool
fn is_multicast(&self) -> bool
Is this a multicast address? Read more
Source§fn is_non_multicast(&self) -> bool
fn is_non_multicast(&self) -> bool
Is this a non-multicast address? The inverse of
is_multicast()
.Source§impl<A> Ord for NonMappedAddr<A>where
A: Ord,
impl<A> Ord for NonMappedAddr<A>where
A: Ord,
Source§fn cmp(&self, other: &NonMappedAddr<A>) -> Ordering
fn cmp(&self, other: &NonMappedAddr<A>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<A> PartialEq for NonMappedAddr<A>where
A: PartialEq,
impl<A> PartialEq for NonMappedAddr<A>where
A: PartialEq,
Source§impl<A> PartialOrd for NonMappedAddr<A>where
A: PartialOrd,
impl<A> PartialOrd for NonMappedAddr<A>where
A: PartialOrd,
Source§impl<A> ScopeableAddress for NonMappedAddr<A>where
A: ScopeableAddress,
impl<A> ScopeableAddress for NonMappedAddr<A>where
A: ScopeableAddress,
Source§type Scope = <A as ScopeableAddress>::Scope
type Scope = <A as ScopeableAddress>::Scope
The type of all non-global scopes.
Source§fn scope(&self) -> <NonMappedAddr<A> as ScopeableAddress>::Scope
fn scope(&self) -> <NonMappedAddr<A> as ScopeableAddress>::Scope
The scope of this address. Read more
Source§impl<A> SpecifiedAddress for NonMappedAddr<A>where
A: SpecifiedAddress,
impl<A> SpecifiedAddress for NonMappedAddr<A>where
A: SpecifiedAddress,
Source§fn is_specified(&self) -> bool
fn is_specified(&self) -> bool
Is this a specified address? Read more
Source§impl<A> TransposableWitness<A> for NonMappedAddr<A>where
A: MappedAddress,
impl<A> TransposableWitness<A> for NonMappedAddr<A>where
A: MappedAddress,
Source§type Map<T> = NonMappedAddr<T>
type Map<T> = NonMappedAddr<T>
Maps the type wrapped by this witness.
Source§impl<A> TryFrom<BroadcastAddr<A>> for NonMappedAddr<A>where
A: BroadcastAddress + MappedAddress,
impl<A> TryFrom<BroadcastAddr<A>> for NonMappedAddr<A>where
A: BroadcastAddress + MappedAddress,
Source§impl<A> TryFrom<LinkLocalAddr<A>> for NonMappedAddr<A>where
A: LinkLocalAddress + MappedAddress,
impl<A> TryFrom<LinkLocalAddr<A>> for NonMappedAddr<A>where
A: LinkLocalAddress + MappedAddress,
Source§impl<A> TryFrom<MulticastAddr<A>> for NonMappedAddr<A>where
A: MulticastAddress + MappedAddress,
impl<A> TryFrom<MulticastAddr<A>> for NonMappedAddr<A>where
A: MulticastAddress + MappedAddress,
Source§impl<A> TryFrom<SpecifiedAddr<A>> for NonMappedAddr<A>where
A: SpecifiedAddress + MappedAddress,
impl<A> TryFrom<SpecifiedAddr<A>> for NonMappedAddr<A>where
A: SpecifiedAddress + MappedAddress,
Source§impl<A> TryFrom<UnicastAddr<A>> for NonMappedAddr<A>where
A: UnicastAddress + MappedAddress,
impl<A> TryFrom<UnicastAddr<A>> for NonMappedAddr<A>where
A: UnicastAddress + MappedAddress,
Source§impl<A> UnicastAddress for NonMappedAddr<A>where
A: UnicastAddress,
impl<A> UnicastAddress for NonMappedAddr<A>where
A: UnicastAddress,
Source§fn is_unicast(&self) -> bool
fn is_unicast(&self) -> bool
Is this a unicast address? Read more
Source§impl<A> Witness<A> for NonMappedAddr<A>where
A: MappedAddress,
impl<A> Witness<A> for NonMappedAddr<A>where
A: MappedAddress,
Source§unsafe fn new_unchecked(addr: A) -> NonMappedAddr<A>
unsafe fn new_unchecked(addr: A) -> NonMappedAddr<A>
Constructs a new witness type without checking to see if
addr
actually
satisfies the required property. Read moreSource§fn from_witness<W>(addr: W) -> Option<Self>where
W: Witness<A>,
fn from_witness<W>(addr: W) -> Option<Self>where
W: Witness<A>,
Constructs a new witness type from an existing witness type. Read more
Source§fn transpose<T>(self) -> <A as TransposableWitness<T>>::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
<A as TransposableWitness<T>>::Map<Self::Map<T>>: Witness<Self::Map<T>>,
fn transpose<T>(self) -> <A as TransposableWitness<T>>::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
<A as TransposableWitness<T>>::Map<Self::Map<T>>: Witness<Self::Map<T>>,
Transposes this witness type with another witness type layered inside of
it.
(e.g. UnicastAddr<SpecifiedAddr> -> SpecifiedAddr<UnicastAddr>)
Source§impl<A> Witness<A> for NonMappedAddr<UnicastAddr<A>>where
A: MappedAddress + UnicastAddress,
impl<A> Witness<A> for NonMappedAddr<UnicastAddr<A>>where
A: MappedAddress + UnicastAddress,
Source§fn new(addr: A) -> Option<NonMappedAddr<UnicastAddr<A>>>
fn new(addr: A) -> Option<NonMappedAddr<UnicastAddr<A>>>
Constructs a new witness type. Read more
Source§unsafe fn new_unchecked(addr: A) -> NonMappedAddr<UnicastAddr<A>>
unsafe fn new_unchecked(addr: A) -> NonMappedAddr<UnicastAddr<A>>
Constructs a new witness type without checking to see if
addr
actually
satisfies the required property. Read moreSource§fn from_witness<W>(addr: W) -> Option<Self>where
W: Witness<A>,
fn from_witness<W>(addr: W) -> Option<Self>where
W: Witness<A>,
Constructs a new witness type from an existing witness type. Read more
Source§fn transpose<T>(self) -> <A as TransposableWitness<T>>::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
<A as TransposableWitness<T>>::Map<Self::Map<T>>: Witness<Self::Map<T>>,
fn transpose<T>(self) -> <A as TransposableWitness<T>>::Map<Self::Map<T>>where
Self: TransposableWitness<A>,
A: TransposableWitness<T>,
Self::Map<T>: Witness<T>,
<A as TransposableWitness<T>>::Map<Self::Map<T>>: Witness<Self::Map<T>>,
Transposes this witness type with another witness type layered inside of
it.
(e.g. UnicastAddr<SpecifiedAddr> -> SpecifiedAddr<UnicastAddr>)