pub trait StatsStore: Send + Sync {
// Required methods
fn read(&self) -> Result<Option<Value>, String>;
fn write(&self, document: &Value) -> Result<(), String>;
}Expand description
Where the counters are kept (HostModuleStore).
Required Methods§
fn read(&self) -> Result<Option<Value>, String>
fn write(&self, document: &Value) -> Result<(), String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".