Skip to main content

Storage

Trait Storage 

Source
pub trait Storage {
    // Required methods
    fn exists(&self, path: &str) -> bool;
    fn read_to_string(&self, path: &str) -> Result<String>;
    fn write_string(&self, path: &str, data: &str) -> Result<()>;
}

Required Methods§

Source

fn exists(&self, path: &str) -> bool

Source

fn read_to_string(&self, path: &str) -> Result<String>

Source

fn write_string(&self, path: &str, data: &str) -> Result<()>

Implementors§