[][src]Trait mind::storage::Storage

pub trait Storage {
    fn init() -> Result<Self>
    where
        Self: Sized
;
fn load(&self) -> Result<Mind>;
fn save(&self, mind: Mind) -> Result<()>; }

Required methods

fn init() -> Result<Self> where
    Self: Sized

fn load(&self) -> Result<Mind>

fn save(&self, mind: Mind) -> Result<()>

Loading content...

Implementors

impl Storage for LocalStorage[src]

Loading content...