Skip to main content

fetch_status

Function fetch_status 

Source
pub async fn fetch_status(endpoint: &ControlEndpoint) -> Result<ProcStatus>
Expand description

Ask a process for its status document once.

Errors mean unreachable or unparseable, which is not the same as unhealthy: a process that has not yet bound its socket is indistinguishable here from one that never will. Callers deciding readiness should poll with wait_ready rather than treating one error as a verdict.