pub fn hostname() -> ClientId {
        ClientId::Domain(
            hostname::get()
                .map_err(|_| ())
                .and_then(|s| s.into_string().map_err(|_| ()))
                .unwrap_or_else(|_| DEFAULT_DOMAIN_CLIENT_ID.to_string()),
        )
    }
/// Defines a `ClientId` with the current hostname, of `localhost` if hostname could not be
/// found
Defines a `ClientId` with the current hostname, of `localhost` if hostname could not be
found
Defines a ` ClientId ` with the current hostname of ` localhost ` if hostname could not be found
pub fn hostname() -> ClientId {
        ClientId::Domain(
            hostname::get()
                .map_err(|_| ())
                .and_then(|s| s.into_string().map_err(|_| ()))
                .unwrap_or_else(|_| DEFAULT_DOMAIN_CLIENT_ID.to_string()),
        )
    }
pub fn hostname ( ) -> ClientId { ClientId :: Domain ( hostname :: get ( ) . map_err ( | _ | ( ) ) . and_then ( | s | s . into_string ( ) . map_err ( | _ | ( ) ) ) . unwrap_or_else ( | _ | DEFAULT_DOMAIN_CLIENT_ID . to_string ( ) ) , ) }
Defines a `ClientId` with the current hostname, of `localhost` if hostname could not be
found
Defines a ` ClientId ` with the current hostname of ` localhost ` if hostname could not be found