pub enum IpScope {
Private,
Special,
Public,
}Expand description
High-level IP classification used by IP Flag.
This classification is intentionally simple and UI-oriented:
Private: local network / internal addresses (LAN), never resolvedSpecial: loopback/multicast/documentation/unspecified/broadcast, never resolvedPublic: eligible for resolution viacrate::IpResolver
Note: Different applications may want deeper classification. IP Flag keeps this minimal.
Variants§
Private
Private/local/internal ranges (e.g., 192.168.x.x, 10.x.x.x, fc00::/7)
Special
Non-public special ranges (loopback, multicast, documentation ranges, etc.)
Public
Public IP addresses. Only these are passed to the resolver.
Trait Implementations§
impl Copy for IpScope
impl Eq for IpScope
impl StructuralPartialEq for IpScope
Auto Trait Implementations§
impl Freeze for IpScope
impl RefUnwindSafe for IpScope
impl Send for IpScope
impl Sync for IpScope
impl Unpin for IpScope
impl UnwindSafe for IpScope
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