Function get_hostname

Source
pub fn get_hostname() -> &'static str
Expand description

Returns the system hostname.

Returns:

  • &'static str - The system’s hostname as a string slice