pub trait Cleaner {
// Required methods
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;
}Required Methods§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".