pub trait StorageFilterCondition:
Send
+ Sync
+ Debug
+ 'static {
// Required method
fn filter(
&self,
stats: &Arc<Statistics>,
hash: u64,
estimated_size: usize,
) -> StorageFilterResult;
}Expand description
Condition for StorageFilter.
Required Methods§
Sourcefn filter(
&self,
stats: &Arc<Statistics>,
hash: u64,
estimated_size: usize,
) -> StorageFilterResult
fn filter( &self, stats: &Arc<Statistics>, hash: u64, estimated_size: usize, ) -> StorageFilterResult
Decide whether to pick an entry by hash.