pub struct EffectLedgerCassette { /* private fields */ }Expand description
A kernel EffectLedger adapter for EvalCassette.
The kernel ledger stores replay hints as ContentId -> Ref. This adapter
records that hint in the ledger and keeps the reply objects alongside it so a
cassette created from the adapter can rebuild its hot-path map immediately.
Implementations§
Source§impl EffectLedgerCassette
impl EffectLedgerCassette
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates an empty adapter backed by a fresh EffectLedger.
Sourcepub fn with_ledger(ledger: EffectLedger) -> Self
pub fn with_ledger(ledger: EffectLedger) -> Self
Creates an adapter around an existing EffectLedger.
Trait Implementations§
Source§impl Default for EffectLedgerCassette
impl Default for EffectLedgerCassette
Source§fn default() -> EffectLedgerCassette
fn default() -> EffectLedgerCassette
Returns the “default value” for a type. Read more
Source§impl EvalCassetteLedger for EffectLedgerCassette
impl EvalCassetteLedger for EffectLedgerCassette
Source§fn append_eval_result(&self, key: &ContentKey, reply: &EvalReply) -> Result<()>
fn append_eval_result(&self, key: &ContentKey, reply: &EvalReply) -> Result<()>
Appends one content key and reply pair.
Source§fn replay_eval_results(&self) -> Result<Vec<(ContentKey, EvalReply)>>
fn replay_eval_results(&self) -> Result<Vec<(ContentKey, EvalReply)>>
Replays the ledger into key and reply pairs.
Auto Trait Implementations§
impl !Freeze for EffectLedgerCassette
impl RefUnwindSafe for EffectLedgerCassette
impl Send for EffectLedgerCassette
impl Sync for EffectLedgerCassette
impl Unpin for EffectLedgerCassette
impl UnsafeUnpin for EffectLedgerCassette
impl UnwindSafe for EffectLedgerCassette
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more