Trait wasmer_wasix::journal::WritableJournal
source · pub trait WritableJournal: Debug {
// Required methods
fn write<'a>(
&'a self,
entry: JournalEntry<'a>,
) -> Result<LogWriteResult, Error>;
fn flush(&self) -> Result<(), Error>;
// Provided methods
fn commit(&self) -> Result<usize, Error> { ... }
fn rollback(&self) -> Result<usize, Error> { ... }
}
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, Error>
fn write<'a>(&'a self, entry: JournalEntry<'a>) -> Result<LogWriteResult, Error>
Takes in a stream of snapshot log entries and saves them so that they may be restored at a later moment