Skip to main content

Fetch

Trait Fetch 

Source
pub trait Fetch: Send + Sync {
    // Required method
    fn fetch<'a>(&'a self, record: &'a RecordRef) -> FetchFuture<'a>;
}
Expand description

One round trip to a repository this deployment does not hold.

Separate from the cache so the cache’s own behaviour — its bounds, its TTLs, its counters — is testable with no network, and so a deployment that resolves repositories some other way substitutes this rather than the reader.

Required Methods§

Source

fn fetch<'a>(&'a self, record: &'a RecordRef) -> FetchFuture<'a>

Read record from the repository that holds it.

Implementors§