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