Struct pearl::filter::CombinedFilter
source · pub struct CombinedFilter<K>where
for<'a> K: Key<'a>,{ /* private fields */ }
Expand description
Combined bloom and range filter
Implementations§
Trait Implementations§
source§impl<K> Clone for CombinedFilter<K>where
for<'a> K: Key<'a> + Clone,
impl<K> Clone for CombinedFilter<K>where for<'a> K: Key<'a> + Clone,
source§fn clone(&self) -> CombinedFilter<K>
fn clone(&self) -> CombinedFilter<K>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<K> FilterTrait<K> for CombinedFilter<K>where
for<'a> K: Key<'a> + Send + Sync,
Bloom: FilterTrait<K>,
impl<K> FilterTrait<K> for CombinedFilter<K>where for<'a> K: Key<'a> + Send + Sync, Bloom: FilterTrait<K>,
Trait filters should implement
source§fn contains_fast(&self, key: &K) -> FilterResult
fn contains_fast(&self, key: &K) -> FilterResult
Check if key in filter (should be implemented if filter can be checked without waiting)
source§fn contains<'life0, 'life1, 'life2, 'async_trait, P>(
&'life0 self,
provider: &'life1 P,
key: &'life2 K
) -> Pin<Box<dyn Future<Output = FilterResult> + Send + 'async_trait>>where
P: 'async_trait + BloomDataProvider,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn contains<'life0, 'life1, 'life2, 'async_trait, P>( &'life0 self, provider: &'life1 P, key: &'life2 K ) -> Pin<Box<dyn Future<Output = FilterResult> + Send + 'async_trait>>where P: 'async_trait + BloomDataProvider, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Check if key in filter (can take some time)
source§fn offload_filter(&mut self) -> usize
fn offload_filter(&mut self) -> usize
Offload filter from memory if possible
source§fn checked_add_assign(&mut self, other: &Self) -> bool
fn checked_add_assign(&mut self, other: &Self) -> bool
Add another filter to this filter
source§fn memory_allocated(&self) -> usize
fn memory_allocated(&self) -> usize
Memory used by filter
source§fn clear_filter(&mut self)
fn clear_filter(&mut self)
Clear all filter data
source§fn is_filter_offloaded(&self) -> bool
fn is_filter_offloaded(&self) -> bool
Check if filter was offloaded
Auto Trait Implementations§
impl<K> RefUnwindSafe for CombinedFilter<K>
impl<K> Send for CombinedFilter<K>
impl<K> Sync for CombinedFilter<K>
impl<K> Unpin for CombinedFilter<K>where K: Unpin,
impl<K> UnwindSafe for CombinedFilter<K>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more