btree_ondisk/loader/
null.rs

1use std::io::Result;
2use crate::BlockLoader;
3
4// null block loader for test purpose
5#[derive(Clone)]
6pub struct NullBlockLoader;
7
8impl<V: Send> BlockLoader<V> for NullBlockLoader {
9    async fn read(&self, _v: V, _buf: &mut [u8], _user_data: u32) -> Result<Vec<(V, Vec<u8>)>> {
10        todo!()
11    }
12
13    fn from_new_path(self, _: &str) -> Self {
14        todo!()
15    }
16}