Function whoami::hostname_os
source · pub fn hostname_os() -> OsString
👎Deprecated since 1.5.0: use
fallible::hostname()
insteadExpand description
Get the host device’s hostname.
Limited to a-z (case insensitive), 0-9, and dashes. This limit also applies
to devicename()
with the exeception of case sensitivity when targeting
Windows. This method normalizes to lowercase. Usually hostnames will be
case-insensitive, but it’s not a hard requirement.
Use fallible::hostname()
for case-sensitive hostname.