Trait wasmer_journal::ReadableJournal

source ·
pub trait ReadableJournal {
    // Required methods
    fn read(&self) -> Result<Option<LogReadResult<'_>>>;
    fn as_restarted(&self) -> Result<Box<DynReadableJournal>>;
}
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 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

Implementations on Foreign Types§

source§

impl ReadableJournal for Box<DynJournal>

source§

impl ReadableJournal for Box<DynReadableJournal>

source§

impl ReadableJournal for Arc<DynJournal>

source§

impl ReadableJournal for Arc<DynReadableJournal>

Implementors§