pub struct ConnBuilder<Path, const STATS_ENABLED: bool, StatsPeriod, FDLimit> { /* private fields */ }Implementations§
Source§impl<Path, const STATS_ENABLED: bool, StatsPeriod, FDLimit> ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
impl<Path, const STATS_ENABLED: bool, StatsPeriod, FDLimit> ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
pub fn with_db_path( self, db_path: PathBuf, ) -> ConnBuilder<PathBuf, STATS_ENABLED, StatsPeriod, FDLimit>
pub fn with_create_if_missing( self, create_if_missing: bool, ) -> ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
pub fn with_parallelism( self, parallelism: impl Into<usize>, ) -> ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
pub fn with_mem_budget( self, mem_budget: impl Into<usize>, ) -> ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
pub fn with_files_limit( self, files_limit: impl Into<i32>, ) -> ConnBuilder<Path, STATS_ENABLED, StatsPeriod, i32>
Source§impl<Path, FDLimit> ConnBuilder<Path, false, Unspecified, FDLimit>
impl<Path, FDLimit> ConnBuilder<Path, false, Unspecified, FDLimit>
pub fn enable_stats(self) -> ConnBuilder<Path, true, Unspecified, FDLimit>
Source§impl<Path, StatsPeriod, FDLimit> ConnBuilder<Path, true, StatsPeriod, FDLimit>
impl<Path, StatsPeriod, FDLimit> ConnBuilder<Path, true, StatsPeriod, FDLimit>
pub fn disable_stats(self) -> ConnBuilder<Path, false, Unspecified, FDLimit>
pub fn with_stats_period( self, stats_period: impl Into<u32>, ) -> ConnBuilder<Path, true, u32, FDLimit>
Source§impl ConnBuilder<PathBuf, false, Unspecified, i32>
impl ConnBuilder<PathBuf, false, Unspecified, i32>
Source§impl ConnBuilder<PathBuf, true, Unspecified, i32>
impl ConnBuilder<PathBuf, true, Unspecified, i32>
Trait Implementations§
Auto Trait Implementations§
impl<Path, const STATS_ENABLED: bool, StatsPeriod, FDLimit> Freeze for ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
impl<Path, const STATS_ENABLED: bool, StatsPeriod, FDLimit> RefUnwindSafe for ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
impl<Path, const STATS_ENABLED: bool, StatsPeriod, FDLimit> Send for ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
impl<Path, const STATS_ENABLED: bool, StatsPeriod, FDLimit> Sync for ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
impl<Path, const STATS_ENABLED: bool, StatsPeriod, FDLimit> Unpin for ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
impl<Path, const STATS_ENABLED: bool, StatsPeriod, FDLimit> UnwindSafe for ConnBuilder<Path, STATS_ENABLED, StatsPeriod, FDLimit>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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