Function cloud_detect::detect
source · pub async fn detect(timeout: Option<u64>) -> &'static strExpand description
Detects the host’s cloud provider.
Returns “unknown” if the detection failed or timed out. If the detection was successful, it returns
a value from SUPPORTED_PROVIDERS.
Arguments
timeout- Maximum time(seconds) allowed for detection. Defaults to 5 ifNone.