Skip to main content

Store

Trait Store 

Source
pub trait Store {
    // Required methods
    fn put(&self, src: &Path, key: &str) -> Result<()>;
    fn get(&self, key: &str, dst: &Path) -> Result<()>;
    fn exists(&self, key: &str) -> Result<Option<bool>>;
}

Required Methods§

Source

fn put(&self, src: &Path, key: &str) -> Result<()>

Source

fn get(&self, key: &str, dst: &Path) -> Result<()>

Source

fn exists(&self, key: &str) -> Result<Option<bool>>

None when the store cannot tell without side effects.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§