Skip to main content

status_of

Function status_of 

Source
pub(super) fn status_of(
    mstore: &Store,
    live: Option<&str>,
    block: Option<&Block>,
    net: &ConnectivityStatus,
    now_ms: u64,
) -> AgentStatus
Expand description

Everything a path needs to know about an agent: its availability (live, the block it is registered in, if any) and, from block (its live block, or the one that holds its desired state), whether it has a pane, whether it is wanted running, and whether its model API answers (net: one snapshot of the connectivity status, so a list of agents takes it once). Writes nothing.