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§
fn get(&self, key: &str) -> Option<String>
fn set(&self, key: &str, value: &str)
fn remove(&self, key: &str)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".