Skip to main content

ip_scope

Function ip_scope 

pub fn ip_scope(addr: impl Into<IpAddr>) -> IpScopes
Available on crate feature net only.
Expand description

Classify addr into the special-use IpScopes it belongs to.

Returns a single bit; IpScopes::GLOBAL for ordinary public addresses.