pub enum Ipv6 {}Expand description
The IPv6 address family.
Trait Implementations§
Source§impl Address<Ipv6> for u128
 
impl Address<Ipv6> for u128
Source§const MAX_LENGTH: Self::Length = {transmute(0x80): <u128 as traits::primitive::Address<concrete::af::Ipv6>>::Length}
 
const MAX_LENGTH: Self::Length = {transmute(0x80): <u128 as traits::primitive::Address<concrete::af::Ipv6>>::Length}
Maximum valid value of the underlying primitive value used to store
prefix-lengths for this address-family.
Source§const ONES: Self = 340_282_366_920_938_463_463_374_607_431_768_211_455u128
 
const ONES: Self = 340_282_366_920_938_463_463_374_607_431_768_211_455u128
“All-ones” IP address representation.
Source§const BROADCAST: Option<Self> = None
 
const BROADCAST: Option<Self> = None
The primitive value of the subnet-local broadcast address, if it is
defined for the address family.
Source§const LOCALHOST: Self = 1u128
 
const LOCALHOST: Self = 1u128
The primitive value of the 
localhost address for this address family.Source§const UNSPECIFIED: Self = 0u128
 
const UNSPECIFIED: Self = 0u128
The primitive value of the “unspecified” address for this address
family.
Source§const LOOPBACK_RANGE: RangeInclusive<Self>
 
const LOOPBACK_RANGE: RangeInclusive<Self>
The range of primitive address values defined for “loopback” use for
this address family.
Source§const BENCHMARK_RANGE: RangeInclusive<Self>
 
const BENCHMARK_RANGE: RangeInclusive<Self>
The range of primitive address values defined for “benchmarking” use for
this address family.
Source§const MULTICAST_RANGE: RangeInclusive<Self>
 
const MULTICAST_RANGE: RangeInclusive<Self>
The range of primitive address values defined for “multicast” use for
this address family.
Source§const LINK_LOCAL_RANGE: RangeInclusive<Self>
 
const LINK_LOCAL_RANGE: RangeInclusive<Self>
The range of primitive address values defined for “link-local” use for
this address family.
Source§const PROTOCOL_ASSIGNMENTS_RANGE: RangeInclusive<Self>
 
const PROTOCOL_ASSIGNMENTS_RANGE: RangeInclusive<Self>
The range of primitive address values reserved for IETF protocol
assignments for this address family.
Source§const DOCUMENTATION_RANGES: &'static [RangeInclusive<Self>]
 
const DOCUMENTATION_RANGES: &'static [RangeInclusive<Self>]
The range of primitive address values defined for “documentation” use
for this address family.
Source§const PRIVATE_RANGES: Option<&'static [RangeInclusive<Self>]> = None
 
const PRIVATE_RANGES: Option<&'static [RangeInclusive<Self>]> = None
The range of primitive address values defined for “private” use, if
that is defined for this address family.
Source§const RESERVED_RANGE: Option<RangeInclusive<Self>> = None
 
const RESERVED_RANGE: Option<RangeInclusive<Self>> = None
The range of primitive address values reserved for future use, if that
is defined for this address family.
Source§const SHARED_RANGE: Option<RangeInclusive<Self>> = None
 
const SHARED_RANGE: Option<RangeInclusive<Self>> = None
The range of primitive address values reserved for “shared” use, if that
is defined for this address family.
Source§const THISNET_RANGE: Option<RangeInclusive<Self>> = None
 
const THISNET_RANGE: Option<RangeInclusive<Self>> = None
The range of primitive address values having “this network” semantics,
if that is defined for this address family.
Source§const ULA_RANGE: Option<RangeInclusive<Self>>
 
const ULA_RANGE: Option<RangeInclusive<Self>>
The range of primitive address values defined as “unique local
addresses”, if that is defined for this address family.
Source§type LengthMap = BitArray<[usize; 5]>
 
type LengthMap = BitArray<[usize; 5]>
Underlying primitive type used to store bitmaps of prefix-lengths.
Source§fn leading_zeros(self) -> Self::Length
 
fn leading_zeros(self) -> Self::Length
Get the number of leading zeros in the binary representation of 
self.Source§fn from_be_bytes(bytes: <Ipv6 as Afi>::Octets) -> Self
 
fn from_be_bytes(bytes: <Ipv6 as Afi>::Octets) -> Self
Construct 
Self from big-endian A::Octets.Source§fn is_global(&self) -> bool
 
fn is_global(&self) -> bool
Returns 
true if this primitive value represents a “globally
routable” address, according to the address family semantics.Source§fn parse_length<S>(s: &S) -> Result<Self::Length, Error>
 
fn parse_length<S>(s: &S) -> Result<Self::Length, Error>
Parse a string into 
Self::Length. Read moreSource§fn parse_prefix<S>(s: &S) -> Result<(Self, Self::Length), Error>
 
fn parse_prefix<S>(s: &S) -> Result<(Self, Self::Length), Error>
Parse a string into a 
(Self, Self::Length>)
pair. Read moreSource§fn parse_range<S>(
    s: &S,
) -> Result<(Self, Self::Length, Self::Length, Self::Length), Error>
 
fn parse_range<S>( s: &S, ) -> Result<(Self, Self::Length, Self::Length, Self::Length), Error>
Parse a string into a 
(Self, Self::Length>, Self::Length, Self::Length) quad. Read moreSource§const MIN_LENGTH: Self::Length = <Self::Length>::ZERO
 
const MIN_LENGTH: Self::Length = <Self::Length>::ZERO
Minimum valid value of the underlying primitive value used to store
prefix-lengths for this address-family.
Source§impl Ord for Ipv6
 
impl Ord for Ipv6
Source§impl PartialOrd for Ipv6
 
impl PartialOrd for Ipv6
impl Copy for Ipv6
impl Eq for Ipv6
impl StructuralPartialEq for Ipv6
Auto Trait Implementations§
impl Freeze for Ipv6
impl RefUnwindSafe for Ipv6
impl Send for Ipv6
impl Sync for Ipv6
impl Unpin for Ipv6
impl UnwindSafe for Ipv6
Blanket Implementations§
Source§impl<A> AfiClass for Awhere
    A: Afi,
 
impl<A> AfiClass for Awhere
    A: Afi,
Source§type Address = Address<A>
 
type Address = Address<A>
The type representing IP address values of this address family class.
Source§type Interface = Interface<A>
 
type Interface = Interface<A>
The type representing IP interface values of this address family class.
Source§type PrefixLength = PrefixLength<A>
 
type PrefixLength = PrefixLength<A>
The type representing IP prefix-length values of this address family
class.
Source§type Netmask = Mask<Net, A>
 
type Netmask = Mask<Net, A>
The type representing IP netmask values of this address family class.
Source§type Hostmask = Mask<Host, A>
 
type Hostmask = Mask<Host, A>
The type representing IP hostmask values of this address family class.
Source§type Bitmask = Mask<Bit, A>
 
type Bitmask = Mask<Bit, A>
The type representing bitmask values of this address family class.
Source§type PrefixRange = Range<A>
 
type PrefixRange = Range<A>
The type representing IP prefix range values of this address family
class.
Source§type PrefixSet = Set<A>
 
type PrefixSet = Set<A>
Available on crate feature 
std only.The type representing IP prefix-sets of this address family class.
Source§fn as_afi_class() -> AfiClass
 
fn as_afi_class() -> AfiClass
Get the 
any::AfiClass variant associated with Self.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§impl<T> FmtForward for T
 
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
    Self: Binary,
 
fn fmt_binary(self) -> FmtBinary<Self>where
    Self: Binary,
Causes 
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
    Self: Display,
 
fn fmt_display(self) -> FmtDisplay<Self>where
    Self: Display,
Causes 
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
    Self: LowerExp,
 
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
    Self: LowerExp,
Causes 
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
    Self: LowerHex,
 
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
    Self: LowerHex,
Causes 
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
    Self: Octal,
 
fn fmt_octal(self) -> FmtOctal<Self>where
    Self: Octal,
Causes 
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
    Self: Pointer,
 
fn fmt_pointer(self) -> FmtPointer<Self>where
    Self: Pointer,
Causes 
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
    Self: UpperExp,
 
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
    Self: UpperExp,
Causes 
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
    Self: UpperHex,
 
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
    Self: UpperHex,
Causes 
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Pipe for Twhere
    T: ?Sized,
 
impl<T> Pipe for Twhere
    T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
    Self: Sized,
 
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
    Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
    R: 'a,
 
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
    R: 'a,
Borrows 
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
    R: 'a,
 
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
    R: 'a,
Mutably borrows 
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
 
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut B) -> R,
) -> R
 
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
 
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows 
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
 
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows 
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
 
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows 
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
 
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
 
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the 
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
 
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the 
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
 
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the 
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
 
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the 
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
 
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the 
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
 
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the 
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
 
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls 
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
 
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls 
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
 
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls 
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
 
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls 
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
 
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls 
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
 
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls 
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
 
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls 
.tap_deref() only in debug builds, and is erased in release
builds.