pub trait Storage<RW>: Send + Sync where
    RW: Read + Write + Seek
{ fn create_dir_all<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>; fn create_file<P: AsRef<Path>>(&self, path: P) -> Result<Entry<RW>, Error>; fn read_file<P: AsRef<Path>>(&self, path: P) -> Result<Entry<RW>, Error>; fn write_file<P: AsRef<Path>>(&self, path: P) -> Result<Entry<RW>, Error>; fn flush_file(&self, file: &Entry<RW>) -> Result<(), Error>; fn file_len(&self, file: &Entry<RW>) -> Result<usize, Error>; fn remove_file(&self, file: Entry<RW>) -> Result<(), Error>; fn remove_dir_all(&self, file: Entry<RW>) -> Result<(), Error>; fn read_dir(&self, file: &Entry<RW>) -> Result<Vec<Entry<RW>>, Error>; fn create_temp_file(&self) -> Result<Entry<RW>, Error> { ... } }

Required Methods

Provided Methods

Implementors