pub fn hostname() -> String
Expand description
Get the host device’s hostname.
Limited to a-z (case insensitve), 0-9, and dashes. This limit also applies
to devicename()
when targeting Windows. Since the hostname is
case-insensitive, this method normalizes to lowercase (unlike
devicename()
).