pub struct CuckooFilterExporter<'a, H: ExportableBuildHasher> { /* private fields */ }Expand description
Exporter for crate::CuckooFilter.
This implements Read to allow reading this data into whatever storage required.
Implementations§
Source§impl<'a, H: ExportableBuildHasher> CuckooFilterExporter<'a, H>
impl<'a, H: ExportableBuildHasher> CuckooFilterExporter<'a, H>
Sourcepub fn write_to(&self, writer: impl Write) -> Result<(), ExportError>
pub fn write_to(&self, writer: impl Write) -> Result<(), ExportError>
Reads in the entire crate::CuckooFilter state into the provided Write instance.
This will lock buckets one by one and can be run concurrently with other
crate::CuckooFilter operations, but it may result in a state which
combines old values for some buckets and newer valus for some other buckets.
The resulting state should still be valid.
Sourcepub fn snapshot(&self) -> Result<Vec<u8>, ExportError>
pub fn snapshot(&self) -> Result<Vec<u8>, ExportError>
Reads the entire crate::CuckooFilter state into a Vec.
This can be useful if writing to slower Write interfaces, to ensure less changes are
made while exporting is in progress.
Auto Trait Implementations§
impl<'a, H> Freeze for CuckooFilterExporter<'a, H>
impl<'a, H> RefUnwindSafe for CuckooFilterExporter<'a, H>where
H: RefUnwindSafe,
impl<'a, H> Send for CuckooFilterExporter<'a, H>where
H: Sync,
impl<'a, H> Sync for CuckooFilterExporter<'a, H>where
H: Sync,
impl<'a, H> Unpin for CuckooFilterExporter<'a, H>
impl<'a, H> UnsafeUnpin for CuckooFilterExporter<'a, H>
impl<'a, H> UnwindSafe for CuckooFilterExporter<'a, H>where
H: RefUnwindSafe,
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