pub trait ManifestFetcher {
// Required methods
fn fetch_remote(&self) -> Option<Manifest>;
fn load_cached(&self) -> Option<Manifest>;
}Expand description
Trait for fetching and caching manifests. Implementations provide the actual remote fetch and cache read/write logic.
Required Methods§
Sourcefn fetch_remote(&self) -> Option<Manifest>
fn fetch_remote(&self) -> Option<Manifest>
Attempt to fetch a fresh remote manifest.
Returns None if the fetch fails for any reason.
Sourcefn load_cached(&self) -> Option<Manifest>
fn load_cached(&self) -> Option<Manifest>
Attempt to load a cached remote manifest.
Returns None if no valid cache exists.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".