Skip to main content

LedgerStorage

Trait LedgerStorage 

Source
pub trait LedgerStorage: Send + Sync {
    // Required methods
    fn load(&self) -> Result<Option<Vec<u8>>, String>;
    fn save(&self, bytes: &[u8]) -> Result<(), String>;
}

Required Methods§

Source

fn load(&self) -> Result<Option<Vec<u8>>, String>

Source

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

Implementors§