pub struct ColumnFamilyConfig { /* private fields */ }Expand description
Configuration for a single column family.
Implementations§
Source§impl ColumnFamilyConfig
impl ColumnFamilyConfig
Sourcepub fn new(name: &str) -> Self
pub fn new(name: &str) -> Self
Creates a new column family configuration with the given name.
The column family will be created if it doesn’t exist when the database is opened.
Sourcepub fn compression(self, compression: DBCompressionType) -> Self
pub fn compression(self, compression: DBCompressionType) -> Self
Sets the compression type for this column family.
Sourcepub fn block_cache_size(self, size_bytes: usize) -> Self
pub fn block_cache_size(self, size_bytes: usize) -> Self
Sets the block cache size for this column family.
Auto Trait Implementations§
impl Freeze for ColumnFamilyConfig
impl RefUnwindSafe for ColumnFamilyConfig
impl Send for ColumnFamilyConfig
impl Sync for ColumnFamilyConfig
impl Unpin for ColumnFamilyConfig
impl UnwindSafe for ColumnFamilyConfig
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