Trait rscache::Store[][src]

pub trait Store: Sized {
    fn new(main_file: File) -> Result<Self>;
fn read(&self, archive: &Archive) -> Result<Vec<u8>>; }
Expand description

The internal storage for a cache with a way to read internal data.

Required methods

fn new(main_file: File) -> Result<Self>[src]

fn read(&self, archive: &Archive) -> Result<Vec<u8>>[src]

Implementors

impl Store for FileStore[src]

fn new(main_file: File) -> Result<Self>[src]

fn read(&self, archive: &Archive) -> Result<Vec<u8>>[src]

impl Store for MemoryStore[src]

fn new(main_file: File) -> Result<Self>[src]

fn read(&self, archive: &Archive) -> Result<Vec<u8>>[src]