Struct bitcasky_common::options::DatabaseOptions
source · pub struct DatabaseOptions {
pub storage: DataStorageOptions,
pub sync_interval_sec: u64,
pub init_hint_file_capacity: usize,
}Fields§
§storage: DataStorageOptions§sync_interval_sec: u64How frequent can we flush data
init_hint_file_capacity: usizeImplementations§
source§impl DatabaseOptions
impl DatabaseOptions
pub fn storage(self, storage: DataStorageOptions) -> Self
Trait Implementations§
source§impl Debug for DatabaseOptions
impl Debug for DatabaseOptions
Auto Trait Implementations§
impl RefUnwindSafe for DatabaseOptions
impl Send for DatabaseOptions
impl Sync for DatabaseOptions
impl Unpin for DatabaseOptions
impl UnwindSafe for DatabaseOptions
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