Function hostname_os

Source
pub fn hostname_os() -> OsString
👎Deprecated since 1.5.0: use fallible::hostname() instead
Expand description

Get the host device’s hostname.

Usually hostnames are case-insensitive, but it’s not a hard requirement.

Use fallible::hostname() for case-sensitive hostname.