Skip to main content

ReadableStorage

Trait ReadableStorage 

Source
pub trait ReadableStorage {
    type Error: Error;

    // Required method
    fn journal(&self) -> Result<Journal, Self::Error>;
}
Expand description

Reads a complete journal from a storage backend.

Required Associated Types§

Source

type Error: Error

Error returned by the storage backend.

Required Methods§

Source

fn journal(&self) -> Result<Journal, Self::Error>

Reads the full journal from the underlying storage.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§