Type Alias wasmer_journal::DynJournal

source ·
pub type DynJournal = dyn Journal + Send + Sync;

Trait Implementations§

source§

impl ReadableJournal for Box<DynJournal>

source§

fn read(&self) -> Result<Option<LogReadResult<'_>>>

Returns a stream of snapshot objects that the runtime will use to restore the state of a WASM process to a previous moment in time
source§

fn as_restarted(&self) -> Result<Box<DynReadableJournal>>

Resets the journal so that reads will start from the beginning again
source§

impl WritableJournal for Box<DynJournal>

source§

fn write<'a>(&'a self, entry: JournalEntry<'a>) -> Result<LogWriteResult>

Takes in a stream of snapshot log entries and saves them so that they may be restored at a later moment
source§

fn flush(&self) -> Result<()>

Flushes the data to disk or network