pub enum AddrClass {
Any,
Loopback,
Private,
LinkLocal,
Multicast,
Public,
Unknown,
}Expand description
Class of an IP address. Exports carry the class of a foreign address, never the address.
Variants§
Any
Wildcard (0.0.0.0 / ::).
Loopback
Private
RFC 1918, CGNAT 100.64/10 (Tailscale), IPv6 ULA fc00::/7.
LinkLocal
Multicast
Public
Unknown
Implementations§
Trait Implementations§
impl Copy for AddrClass
Source§impl<'de> Deserialize<'de> for AddrClass
impl<'de> Deserialize<'de> for AddrClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AddrClass
Source§impl Ord for AddrClass
impl Ord for AddrClass
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 AddrClass
impl PartialOrd for AddrClass
impl StructuralPartialEq for AddrClass
Auto Trait Implementations§
impl Forget for AddrClass
impl Freeze for AddrClass
impl Move for AddrClass
impl RefUnwindSafe for AddrClass
impl Send for AddrClass
impl Sync for AddrClass
impl Unpin for AddrClass
impl UnsafeUnpin for AddrClass
impl UnwindSafe for AddrClass
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