[][src]Trait epi::Storage

pub trait Storage {
    pub fn get_string(&self, key: &str) -> Option<String>;
pub fn set_string(&mut self, key: &str, value: String);
pub fn flush(&mut self); }

A place where you can store custom data in a way that persists when you restart the app.

On the web this is backed by local storage. On desktop this is backed by the file system.

Required methods

pub fn get_string(&self, key: &str) -> Option<String>[src]

Get the value for the given key.

pub fn set_string(&mut self, key: &str, value: String)[src]

Set the value for the given key.

pub fn flush(&mut self)[src]

write-to-disk or similar

Loading content...

Implementors

impl Storage for DummyStorage[src]

Loading content...