pub struct ConfigBuilder { /* private fields */ }Expand description
Supported process-wide durability and sidecar-I/O configuration.
Resource and logging controls are intentionally absent until they have an implemented execution path:
ⓘ
use a3s_vec::{ConfigBuilder, LogLevel, LogType};
let _ = (LogLevel::Info, LogType::Console);
let _ = ConfigBuilder::new()
.memory_limit(1024)
.num_threads(2)
.enable_console_log(true)
.fts_brute_force_by_keys_ratio(0.5);The default IoBackend::Positioned reader can be replaced by the bounded
immutable mmap snapshot backend:
use a3s_vec::{ConfigBuilder, IoBackend};
let _ = ConfigBuilder::new().io_backend(IoBackend::Mmap).build();Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
pub fn new() -> Self
pub fn durability(self, durability: Durability) -> Self
pub fn wal_max_ops(self, limit: u64) -> Self
pub fn wal_max_bytes(self, limit: u64) -> Self
Sourcepub fn io_backend(self, backend: IoBackend) -> Self
pub fn io_backend(self, backend: IoBackend) -> Self
Selects the process default for validated derived-sidecar query reads.
Sourcepub fn storage_ceilings(self, ceilings: StorageCeilings) -> Self
pub fn storage_ceilings(self, ceilings: StorageCeilings) -> Self
Sets process-wide persistence DoS ceilings for collections that do not
override them through crate::CollectionOptions.
Trait Implementations§
Source§impl Clone for ConfigBuilder
impl Clone for ConfigBuilder
Source§impl Debug for ConfigBuilder
impl Debug for ConfigBuilder
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§impl<'de> Deserialize<'de> for ConfigBuilder
impl<'de> Deserialize<'de> for ConfigBuilder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnsafeUnpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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