Struct bitcasky_common::options::BitcaskOptions
source · pub struct BitcaskOptions {
pub database: DatabaseOptions,
pub max_key_size: usize,
pub max_value_size: usize,
pub clock: BitcaskClock,
}Expand description
Bitcask optional options. Used on opening Bitcask instance.
Fields§
§database: DatabaseOptions§max_key_size: usize§max_value_size: usize§clock: BitcaskClockImplementations§
source§impl BitcaskOptions
impl BitcaskOptions
pub fn max_data_file_size(self, size: usize) -> BitcaskOptions
pub fn init_data_file_capacity(self, capacity: usize) -> BitcaskOptions
pub fn init_hint_file_capacity(self, capacity: usize) -> BitcaskOptions
pub fn max_key_size(self, size: usize) -> BitcaskOptions
pub fn max_value_size(self, size: usize) -> BitcaskOptions
pub fn storage_type(self, storage_type: DataSotrageType) -> BitcaskOptions
pub fn sync_interval(self, interval: Duration) -> BitcaskOptions
pub fn debug_clock(self, clock: Arc<DebugClock>) -> BitcaskOptions
Trait Implementations§
source§impl Debug for BitcaskOptions
impl Debug for BitcaskOptions
Auto Trait Implementations§
impl RefUnwindSafe for BitcaskOptions
impl Send for BitcaskOptions
impl Sync for BitcaskOptions
impl Unpin for BitcaskOptions
impl UnwindSafe for BitcaskOptions
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