pub struct OpenOptions {
pub wal_durability: WalDurability,
pub flush_threshold: usize,
pub block_cache_bytes: usize,
}Expand description
Top-level embedded database handle and diagnostics. Options for opening an embedded database.
Fields§
§wal_durability: WalDurabilityWAL fsync policy. Default: WalDurability::Strict.
flush_threshold: usizeIn-memory records before auto-sealing a block. Default: 256.
block_cache_bytes: usizeLRU cache size for decoded blocks. Default: 10 MiB.
Implementations§
Source§impl OpenOptions
impl OpenOptions
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenOptions
impl Debug for OpenOptions
Auto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnsafeUnpin for OpenOptions
impl UnwindSafe for OpenOptions
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