hyperfile_cleaner/lib.rs
1use std::io::Result;
2use hyperfile::SegmentId;
3
4pub mod s3;
5
6pub trait Cleaner {
7 fn collect(&self, low: SegmentId, high: SegmentId) -> impl Future<Output = Result<(Vec<SegmentId>, Vec<SegmentId>)>> + Send;
8 fn prune(&self, low: SegmentId, high: SegmentId) -> impl Future<Output = Result<()>> + Send;
9}