pub struct FileChecksumGenFactory { /* private fields */ }Expand description
A factory RocksDB asks for a checksum generator each time it creates an SST file.
Install one with
Options::set_file_checksum_gen_factory.
The setter copies the underlying shared_ptr, so a factory can be installed
on any number of Options and dropped as soon as the last call returns.
Implementations§
Source§impl FileChecksumGenFactory
impl FileChecksumGenFactory
Sourcepub fn crc32c() -> Self
pub fn crc32c() -> Self
The built in CRC32C generator, recorded in the manifest under the name
FileChecksumCrc32c.
Upstream notes that this digest is big endian and unmasked, unlike the other CRC32C values RocksDB computes, which makes it comparable with CRC32C implementations outside RocksDB.
Wraps GetFileChecksumGenCrc32cFactory.
Trait Implementations§
Source§impl Drop for FileChecksumGenFactory
impl Drop for FileChecksumGenFactory
impl Send for FileChecksumGenFactory
impl Sync for FileChecksumGenFactory
Auto Trait Implementations§
impl Freeze for FileChecksumGenFactory
impl RefUnwindSafe for FileChecksumGenFactory
impl Unpin for FileChecksumGenFactory
impl UnsafeUnpin for FileChecksumGenFactory
impl UnwindSafe for FileChecksumGenFactory
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