Trait wasmer_journal::WritableJournal
source · pub trait WritableJournal {
// Required methods
fn write<'a>(&'a self, entry: JournalEntry<'a>) -> Result<LogWriteResult>;
fn flush(&self) -> Result<()>;
}
Expand description
The snapshot capturer will take a series of objects that represents the state of a WASM process at a point in time and saves it so that it can be restored. It also allows for the restoration of that state at a later moment
Required Methods§
sourcefn write<'a>(&'a self, entry: JournalEntry<'a>) -> Result<LogWriteResult>
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