amethystate 0.9.3

Type-safe reactive persistence for Rust GUI apps
Documentation
use crate::StorageResult;
use crate::observability::InspectorBackend;
use crate::store::CodecFormat;
use crate::store::meta::SchemaSnapshot;
use crate::stores::RonStore;

impl InspectorBackend for RonStore {
    fn format(&self) -> CodecFormat {
        self.0.format()
    }
    fn scan_all(&self) -> StorageResult<Vec<(String, Vec<u8>)>> {
        self.0.scan_all()
    }
    fn get_schema_snapshots(&self) -> StorageResult<Vec<(String, SchemaSnapshot)>> {
        self.0.get_schema_snapshots()
    }
    fn set_raw(&mut self, key: &str, value: &[u8]) -> StorageResult<()> {
        self.0.set_raw(key, value)
    }
}