pub struct DatabaseOptions { /* private fields */ }Expand description
Options for configuring how a database instance is opened.
Implementations§
Source§impl DatabaseOptions
impl DatabaseOptions
Sourcepub fn with_memory_limit(self, bytes: usize) -> Self
pub fn with_memory_limit(self, bytes: usize) -> Self
Sets an optional memory limit (bytes) and enables in-memory mode.
Sourcepub fn memory_mode(&self) -> bool
pub fn memory_mode(&self) -> bool
Returns true when in-memory mode is enabled.
Sourcepub fn memory_limit(&self) -> Option<usize>
pub fn memory_limit(&self) -> Option<usize>
Returns the optional memory limit when configured.
Trait Implementations§
Source§impl Clone for DatabaseOptions
impl Clone for DatabaseOptions
Source§fn clone(&self) -> DatabaseOptions
fn clone(&self) -> DatabaseOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 DatabaseOptions
impl Debug for DatabaseOptions
Source§impl Default for DatabaseOptions
impl Default for DatabaseOptions
Source§fn default() -> DatabaseOptions
fn default() -> DatabaseOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DatabaseOptions
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