Skip to main content

CacheRead

Trait CacheRead 

Source
pub trait CacheRead {
    // Required methods
    fn check(&self, path: &Path) -> Result<bool>;
    fn check_all(&self, paths: &[&Path]) -> Vec<(PathBuf, Result<bool>)>;
    fn list_paths(&self) -> Result<Vec<String>>;
}
Expand description

Read-side capability shared by the image and video readers.

Required Methods§

Source

fn check(&self, path: &Path) -> Result<bool>

true when the cache entry for path exists and is fresh.

Source

fn check_all(&self, paths: &[&Path]) -> Vec<(PathBuf, Result<bool>)>

Batch variant of check, parallelized.

Source

fn list_paths(&self) -> Result<Vec<String>>

Canonicalized paths of every registered entry.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§