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);
}

Provided Associated Constants§

source

const MAGIC_NUMBER: u64 = 409_454_158u64

source

const ARCHIVE_VERSION: u64 = 20u64

Required Methods§

source

fn new( toc_path: PathBuf, cache_path: PathBuf, is_post_ensmallening: bool ) -> Self

source

fn is_post_ensmallening(&self) -> bool

source

fn toc_path(&self) -> PathBuf

source

fn cache_path(&self) -> PathBuf

source

fn read_toc(&self) -> Result<()>

source

fn unread_toc(&self)

Implementors§