Function cloud_detect::detect
source · pub async fn detect(timeout: Option<u64>) -> StringExpand description
Detects the current host’s cloud service provider. Returns “unknown” if the detection failed, if the current cloud service provider is unsupported, or if minor errors occurred during detection.
Arguments
timeout- How long to attempt detection for (in seconds). Defaults to 3 seconds.