pub struct ParityDbConfig {
pub path: PathBuf,
pub preset: ParityDbPreset,
pub custom_options: Option<Options>,
}Expand description
ParityDB block store configuration
Fields§
§path: PathBufPath to the database directory
preset: ParityDbPresetConfiguration preset
custom_options: Option<Options>Custom column options (overrides preset if provided)
Implementations§
Source§impl ParityDbConfig
impl ParityDbConfig
Sourcepub fn new(path: PathBuf, preset: ParityDbPreset) -> Self
pub fn new(path: PathBuf, preset: ParityDbPreset) -> Self
Create a new configuration with a preset
Sourcepub fn fast_write(path: PathBuf) -> Self
pub fn fast_write(path: PathBuf) -> Self
Create configuration optimized for fast writes
Sourcepub fn low_memory(path: PathBuf) -> Self
pub fn low_memory(path: PathBuf) -> Self
Create configuration for low memory usage
Trait Implementations§
Source§impl Clone for ParityDbConfig
impl Clone for ParityDbConfig
Source§fn clone(&self) -> ParityDbConfig
fn clone(&self) -> ParityDbConfig
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 ParityDbConfig
impl Debug for ParityDbConfig
Auto Trait Implementations§
impl Freeze for ParityDbConfig
impl RefUnwindSafe for ParityDbConfig
impl Send for ParityDbConfig
impl Sync for ParityDbConfig
impl Unpin for ParityDbConfig
impl UnwindSafe for ParityDbConfig
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