Skip to main content

tuwunel_database/engine/
files.rs

1use rocksdb::LiveFile as SstFile;
2use tuwunel_core::{Result, implement};
3
4use super::Engine;
5use crate::util::map_err;
6
7#[implement(Engine)]
8pub fn file_list(&self) -> impl Iterator<Item = Result<SstFile>> + Send + use<> {
9	self.db
10		.live_files()
11		.map_err(map_err)
12		.into_iter()
13		.flat_map(Vec::into_iter)
14		.map(Ok)
15}