pub trait LedgerStorage: Send + Sync {
// Required methods
fn load(&self) -> Result<Option<Vec<u8>>, String>;
fn save(&self, bytes: &[u8]) -> Result<(), String>;
}Required Methods§
fn load(&self) -> Result<Option<Vec<u8>>, String>
fn save(&self, bytes: &[u8]) -> Result<(), String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".