Trait lotus_lib::cache_pair::CachePair
source · pub trait CachePair {
const MAGIC_NUMBER: u64 = 409_454_158u64;
const ARCHIVE_VERSION: u64 = 20u64;
// Required methods
fn new(
toc_path: PathBuf,
cache_path: PathBuf,
is_post_ensmallening: bool
) -> Self;
fn is_post_ensmallening(&self) -> bool;
fn toc_path(&self) -> PathBuf;
fn cache_path(&self) -> PathBuf;
fn read_toc(&self) -> Result<()>;
fn unread_toc(&self);
}