pub trait HttpCache: Send {
// Required methods
fn get(&self, key: &CacheKey) -> Result<Option<CacheEntry>, CliError>;
fn put(&self, key: &CacheKey, entry: CacheEntry) -> Result<(), CliError>;
}Expand description
Trait for one-shot HTTP/parse caches.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".