Skip to main content

StatsStore

Trait StatsStore 

Source
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§

Source

fn read(&self) -> Result<Option<Value>, String>

Source

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".

Implementors§