Trait gear_lazy_pages::LazyPagesStorage

source ·
pub trait LazyPagesStorage: Debug {
    // Required methods
    fn page_exists(&self, key: &[u8]) -> bool;
    fn load_page(&mut self, key: &[u8], buffer: &mut [u8]) -> Option<u32>;
}

Required Methods§

source

fn page_exists(&self, key: &[u8]) -> bool

source

fn load_page(&mut self, key: &[u8], buffer: &mut [u8]) -> Option<u32>

Implementations on Foreign Types§

source§

impl LazyPagesStorage for ()

source§

fn page_exists(&self, _key: &[u8]) -> bool

source§

fn load_page(&mut self, _key: &[u8], _buffer: &mut [u8]) -> Option<u32>

Implementors§