Function hostname

Source
pub fn hostname() -> Result<String>
Expand description

Get the host device’s hostname.

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

FIXME: Document platform-specific character limitations