pub(crate) trait PruningDataSource {
// Required methods
fn get_oldest_block(
&self,
) -> impl Send + Future<Output = Result<Option<BlockQueryData<SeqTypes>>>>;
fn get_oldest_leaf(
&self,
) -> impl Send + Future<Output = Result<Option<LeafQueryData<SeqTypes>>>>;
}Expand description
Data source for pruning state: the oldest retained block and leaf.
SQL backends return the actual oldest entry; the filesystem backend always returns None
since it does not prune.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.