use kv::{Key, KeyState, Transaction, Value}; pub trait KeyValueDatabase: Send + Sync { fn write(&self, tx: Transaction) -> Result<(), String>; fn get(&self, key: &Key) -> Result, String>; }