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§

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

Implementations on Foreign Types§

source§

impl WritableJournal for Box<DynJournal>

source§

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

source§

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

source§

impl WritableJournal for Box<DynWritableJournal>

source§

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

source§

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

source§

impl WritableJournal for Arc<DynJournal>

source§

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

source§

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

source§

impl WritableJournal for Arc<DynWritableJournal>

source§

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

source§

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

Implementors§