pub trait Ledger:
Send
+ Sync
+ Debug {
// Required methods
fn get_latest(&self, path: &str) -> Option<LedgerEntry>;
fn record(&self, entry: LedgerEntry);
}Expand description
Mirror of the TS Ledger surface: keyed by path, most-recent wins.
Required Methods§
fn get_latest(&self, path: &str) -> Option<LedgerEntry>
fn record(&self, entry: LedgerEntry)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".