pub struct StorageOptions {
pub db_path: PathBuf,
pub page_size: usize,
pub read_method: ReadMethod,
pub page_cache_max_pages: usize,
pub page_cache_max_mb: usize,
pub zero_fill_pages: bool,
}Fields§
§db_path: PathBuf§page_size: usize§read_method: ReadMethod§page_cache_max_pages: usize§page_cache_max_mb: usize§zero_fill_pages: boolImplementations§
Source§impl StorageOptions
impl StorageOptions
pub fn db_path<P: AsRef<Path>>(self, db_path: P) -> Self
pub fn page_size(self, page_size: usize) -> Self
pub fn read_method(self, read_method: ReadMethod) -> Self
pub fn page_cache_max_pages(self, page_cache_max_pages: usize) -> Self
pub fn page_cache_max_mb(self, page_cache_max_mb: usize) -> Self
pub fn zero_fill_pages(self, zero_fill_pages: bool) -> Self
Trait Implementations§
Source§impl Clone for StorageOptions
impl Clone for StorageOptions
Source§fn clone(&self) -> StorageOptions
fn clone(&self) -> StorageOptions
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 StorageOptions
impl Debug for StorageOptions
Auto Trait Implementations§
impl Freeze for StorageOptions
impl RefUnwindSafe for StorageOptions
impl Send for StorageOptions
impl Sync for StorageOptions
impl Unpin for StorageOptions
impl UnsafeUnpin for StorageOptions
impl UnwindSafe for StorageOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more