pub fn hostname() -> Result<String>
Expand description
Get the host device’s hostname.
Limited to a-z, A-Z, 0-9, and dashes. This limit also applies to
devicename()
when targeting Windows. Usually hostnames are
case-insensitive, but it’s not a hard requirement.