Skip to main content

read

Function read 

Source
pub fn read(
    store: &CloudStore,
    config: &CloudConfig,
    now: UtcDateTime,
) -> Result<Option<UsageRead>, CloudError>
Expand description

The usage for a reader (lean-ctx cloud status, cloud usage --json): read now, else the last answer of this server. None when the server did not announce usage (no request is sent).