Skip to main content

TuneStore

Trait TuneStore 

Source
pub trait TuneStore {
    // Required methods
    fn get(&self, key: &str) -> Option<String>;
    fn set(&self, key: &str, value: &str);
    fn remove(&self, key: &str);
}
Expand description

Injected persistence backend (localStorage in the browser; a map in tests).

Required Methods§

Source

fn get(&self, key: &str) -> Option<String>

Source

fn set(&self, key: &str, value: &str)

Source

fn remove(&self, key: &str)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§