Skip to main content

Ledger

Trait Ledger 

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

Source

fn get_latest(&self, path: &str) -> Option<LedgerEntry>

Source

fn record(&self, entry: LedgerEntry)

Implementors§