Trait soroban_sdk::testutils::Ledger
source · pub trait Ledger {
// Required methods
fn set(&self, l: LedgerInfo);
fn get(&self) -> LedgerInfo;
fn with_mut<F>(&self, f: F)
where F: FnMut(&mut LedgerInfo);
}
Available on crate feature
testutils
only.Expand description
Test utilities for Ledger
.
Required Methods§
sourcefn set(&self, l: LedgerInfo)
fn set(&self, l: LedgerInfo)
Set ledger info.
sourcefn get(&self) -> LedgerInfo
fn get(&self) -> LedgerInfo
Get ledger info.
sourcefn with_mut<F>(&self, f: F)where
F: FnMut(&mut LedgerInfo),
fn with_mut<F>(&self, f: F)where
F: FnMut(&mut LedgerInfo),
Modify the ledger info.
Object Safety§
This trait is not object safe.