hyperfile-cleaner 0.2.0

Segments cleaner implementation for Hyperfile
Documentation
1
2
3
4
5
6
7
8
9
use std::io::Result;
use hyperfile::SegmentId;

pub mod s3;

pub trait Cleaner {
    fn collect(&self, low: SegmentId, high: SegmentId) -> impl Future<Output = Result<(Vec<SegmentId>, Vec<SegmentId>)>> + Send;
    fn prune(&self, low: SegmentId, high: SegmentId) -> impl Future<Output = Result<()>> + Send;
}