pub struct LmdbStorageConfig {
pub root_dir: PathBuf,
pub verify_on_read: bool,
pub max_map_size: usize,
pub disk_reserve: u64,
}Expand description
Configuration for LMDB storage.
Fields§
§root_dir: PathBufRoot directory for storage (LMDB env lives at {root_dir}/chunks.mdb/).
verify_on_read: boolWhether to verify content on read (compares hash to address).
max_map_size: usizeExplicit LMDB map size cap in bytes.
When 0 (default), the map size is computed automatically from available disk space and grows on demand when more storage becomes available.
disk_reserve: u64Minimum free disk space (in bytes) to preserve on the storage partition.
Writes are refused when available space drops below this threshold.
Trait Implementations§
Source§impl Clone for LmdbStorageConfig
impl Clone for LmdbStorageConfig
Source§fn clone(&self) -> LmdbStorageConfig
fn clone(&self) -> LmdbStorageConfig
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 LmdbStorageConfig
impl Debug for LmdbStorageConfig
Auto Trait Implementations§
impl Freeze for LmdbStorageConfig
impl RefUnwindSafe for LmdbStorageConfig
impl Send for LmdbStorageConfig
impl Sync for LmdbStorageConfig
impl Unpin for LmdbStorageConfig
impl UnsafeUnpin for LmdbStorageConfig
impl UnwindSafe for LmdbStorageConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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