1 2 3 4 5 6 7 8 9
use crate::models::Journal; use std::error::Error; pub trait ReadableStorage { type Error: Error; /// Reads the full journal from the underlying storage. fn journal(&self) -> Result<Journal, Self::Error>; }