pub trait SnapshotSource {
    // Required methods
    fn get(&self, key: &Rc<LedgerKey>) -> Result<Rc<LedgerEntry>, HostError>;
    fn has(&self, key: &Rc<LedgerKey>) -> Result<bool, HostError>;
}
Expand description

A helper type used by FootprintMode::Recording to provide access to a stable read-snapshot of a ledger.

Required Methods§

source

fn get(&self, key: &Rc<LedgerKey>) -> Result<Rc<LedgerEntry>, HostError>

source

fn has(&self, key: &Rc<LedgerKey>) -> Result<bool, HostError>

Implementors§