Skip to main content

LayoutStorage

Trait LayoutStorage 

Source
pub trait LayoutStorage: Send + Sync {
    // Required methods
    fn save(&self, key: &str, layout: &LayoutSnapshot) -> Result<()>;
    fn load(&self, key: &str) -> Result<Option<LayoutSnapshot>>;
}

Required Methods§

Source

fn save(&self, key: &str, layout: &LayoutSnapshot) -> Result<()>

Source

fn load(&self, key: &str) -> Result<Option<LayoutSnapshot>>

Implementors§

Source§

impl LayoutStorage for BrowserStorage

Source§

impl LayoutStorage for FileStorage

Available on non-WebAssembly only.