hostname

Function hostname 

Source
pub fn hostname() -> String
Expand description

Returns the hostname of the current machine, or an empty string if failed, which rarely happens.