Trait rustup_available_packages::cache::Cache [−][src]
pub trait Cache {
fn get(&self, day: NaiveDate) -> Option<Manifest>;
fn store(&self, manifest: &Manifest);
}A cache trait.
Required Methods
fn get(&self, day: NaiveDate) -> Option<Manifest>
Tries to load a manifest from a cached file.
fn store(&self, manifest: &Manifest)
Stores a manifest to the disk.
Implementations on Foreign Types
impl<L, R> Cache for Either<L, R> where
L: Cache,
R: Cache, [src]
impl<L, R> Cache for Either<L, R> where
L: Cache,
R: Cache,