pub enum AddrScope {
Global,
Link,
Host,
Site,
Nowhere,
}Expand description
Scope of an IP address, as reported by the kernel (RT_SCOPE_*).
Variants§
Global
Globally routable address.
Link
Link-local address (fe80::/10 or 169.254.0.0/16).
Host
Loopback address.
Site
Site-local (deprecated, RFC 3879).
Nowhere
No scope / unreachable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddrScope
impl<'de> Deserialize<'de> for AddrScope
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 Copy for AddrScope
impl Eq 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