Trait wasmer_wasix::journal::ReadableJournal

source ·
pub trait ReadableJournal: Debug {
    // Required methods
    fn read(&self) -> Result<Option<LogReadResult<'_>>, Error>;
    fn as_restarted(
        &self,
    ) -> Result<Box<dyn ReadableJournal + Send + Sync>, 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§

source

fn read(&self) -> Result<Option<LogReadResult<'_>>, Error>

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<dyn ReadableJournal + Send + Sync>, Error>

Resets the journal so that reads will start from the beginning again

Implementations on Foreign Types§

source§

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

Implementors§

source§

impl ReadableJournal for Arc<dyn Journal + Send + Sync>

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 for Arc<R>
where R: ReadableJournal,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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