Skip to main content

local_addresses

Function local_addresses 

pub fn local_addresses(scopes: IpScopes) -> Result<Vec<IpAddr>, Error>
Available on crate feature net only.
Expand description

Every address assigned to an interface that is up (administratively and operationally), filtered to the given IpScopes, deduplicated, in the order the platform reported them.

See interfaces for platform support; scope classification is ip_scope’s.