[][src]Trait catwalk::persistence::Persister

pub trait Persister {
    pub fn name(&self) -> &str;
pub fn store<R: AsRef<[u8]>>(&self, key: &str, data: R) -> Result<()>;
pub fn get<R: AsRef<[u8]>>(&self, key: &str) -> Result<Option<R>>; }

Required methods

pub fn name(&self) -> &str[src]

The name of the Persister; usually this will be the name of the model.

pub fn store<R: AsRef<[u8]>>(&self, key: &str, data: R) -> Result<()>[src]

pub fn get<R: AsRef<[u8]>>(&self, key: &str) -> Result<Option<R>>[src]

Loading content...

Implementors

Loading content...