Skip to main content

FetchOutcome

Type Alias FetchOutcome 

Source
pub type FetchOutcome = Outcome<Snapshot>;
Expand description

This vendor’s Outcome — the shared shape, specialised to its snapshot.

Aliased Type§

pub struct FetchOutcome {
    pub snapshot: Snapshot,
    pub stale: bool,
    pub last_error: Option<(u16, String)>,
    pub cache_age: Option<Duration>,
}

Fields§

§snapshot: Snapshot§stale: bool

The payload is past its TTL — shown, but marked.

§last_error: Option<(u16, String)>

The failure recorded by the most recent unsuccessful refresh, redacted by Cache::write_last_error. None means the last refresh worked.

§cache_age: Option<Duration>

How long ago the payload was written. None when unknown.