pub enum AddrScope {
Global,
Private,
UniqueLocal,
Other,
LinkLocal,
Loopback,
Unspecified,
}Expand description
The reachability class of an address, declared in candidate preference order (record.py:51-61): routable addresses before link-local ones.
The classification is python’s (record.py:93-108) over python’s
ipaddress tables of addresses that are not globally reachable, so every
SDK orders the same advertisement the same way. An IPv4-mapped IPv6
address takes its loopback, unspecified, link-local and global tests from
the IPv4 address, as python’s does.
Variants§
Global
Globally reachable.
Private
IPv4 not globally reachable (RFC 1918 and the other special-purpose blocks).
UniqueLocal
IPv6 unique local, fc00::/7.
Other
Neither global nor private, such as CGNAT 100.64.0.0/10.
LinkLocal
IPv6 fe80::/10 or IPv4 169.254.0.0/16.
Loopback
Loopback.
Unspecified
The unspecified address.
Implementations§
Trait Implementations§
impl Copy for AddrScope
impl Eq for AddrScope
Source§impl Ord for AddrScope
impl Ord for AddrScope
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for AddrScope
impl PartialOrd for AddrScope
impl StructuralPartialEq for AddrScope
Auto Trait Implementations§
impl Freeze for AddrScope
impl RefUnwindSafe for AddrScope
impl Send for AddrScope
impl Sync for AddrScope
impl Unpin for AddrScope
impl UnsafeUnpin for AddrScope
impl UnwindSafe for AddrScope
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