resolved::fs

Function hosts_from_file

Source
async fn hosts_from_file<P: AsRef<Path>>(
    path: P,
) -> Result<Result<Hosts, Error>>
Expand description

Read a hosts file, for example /etc/hosts.