Function hostname

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

Get the host device’s hostname.

This method normalizes to lowercase. Usually hostnames are case-insensitive, but it’s not a hard requirement.

FIXME: Document platform-specific character limitations

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