wasmer_journal

Trait ReadableJournal

Source
pub trait ReadableJournal: Debug {
    // 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 Arc<DynJournal>

Source§

impl<R: ReadableJournal + ?Sized> ReadableJournal for Box<R>

Source§

impl<R: ReadableJournal> ReadableJournal for Arc<R>

Implementors§

Source§

impl ReadableJournal for BufferedJournal

Source§

impl ReadableJournal for BufferedJournalRx

Source§

impl ReadableJournal for CompactingJournal

Source§

impl ReadableJournal for CompactingJournalRx

Source§

impl ReadableJournal for CompactingLogFileJournal

Source§

impl ReadableJournal for CompactingLogFileJournalRx

Source§

impl ReadableJournal for CountingJournal

Source§

impl ReadableJournal for LogFileJournal

Source§

impl ReadableJournal for LogFileJournalRx

Source§

impl ReadableJournal for MemFileJournal

Source§

impl ReadableJournal for NullJournal

Source§

impl ReadableJournal for PipeJournal

Source§

impl ReadableJournal for PipeJournalRx

Source§

impl ReadableJournal for PrintingJournal

Source§

impl ReadableJournal for UnsupportedJournal

Source§

impl<R: ReadableJournal> ReadableJournal for AutoConsistentJournalRx<R>

Source§

impl<R: ReadableJournal> ReadableJournal for CompactingTransactionJournalRx<R>

Source§

impl<R: ReadableJournal> ReadableJournal for FilteredJournalRx<R>

Source§

impl<R: ReadableJournal> ReadableJournal for TransactionJournalRx<R>

Source§

impl<W: WritableJournal, R: ReadableJournal> ReadableJournal for AutoConsistentJournal<W, R>

Source§

impl<W: WritableJournal, R: ReadableJournal> ReadableJournal for CompactingTransactionJournal<W, R>

Source§

impl<W: WritableJournal, R: ReadableJournal> ReadableJournal for FilteredJournal<W, R>

Source§

impl<W: WritableJournal, R: ReadableJournal> ReadableJournal for RecombinedJournal<W, R>

Source§

impl<W: WritableJournal, R: ReadableJournal> ReadableJournal for TransactionJournal<W, R>