Function resolve::hosts::load_hosts [] [src]

pub fn load_hosts(path: &Path) -> Result<HostTable>

Loads a host table from the given filename.

If an error is encountered in opening the file or reading its contents or if the file is malformed, the error is returned.