pub struct OpenOptions { /* private fields */ }Expand description
Store-open configuration.
Implementations§
Source§impl OpenOptions
impl OpenOptions
Sourcepub const fn with_durability(
self,
mode: DurabilityMode,
tier: CommitTier,
) -> Self
pub const fn with_durability( self, mode: DurabilityMode, tier: CommitTier, ) -> Self
Selects the existing durability-policy mode and per-commit tier.
Sourcepub const fn with_reader_drain_timeout(self, timeout: Duration) -> Self
pub const fn with_reader_drain_timeout(self, timeout: Duration) -> Self
Sets the grace period close gives admitted readers before cancellation.
Sourcepub const fn with_max_resident_bytes(self, bytes: u64) -> Self
pub const fn with_max_resident_bytes(self, bytes: u64) -> Self
Sets the exact ceiling for live engine-owned anonymous bytes.
Sourcepub fn with_schema(self, schema: Schema) -> Self
pub fn with_schema(self, schema: Schema) -> Self
Declares the typed user-column schema when creating a store.
On reopen, an optional declaration must exactly match the persisted schema.
Sourcepub const fn with_max_temp_bytes(self, bytes: u64) -> Self
pub const fn with_max_temp_bytes(self, bytes: u64) -> Self
Sets the exact ceiling for live temporary anonymous bytes.
Sourcepub fn with_epoch(self, epoch: StoreEpoch) -> Self
pub fn with_epoch(self, epoch: StoreEpoch) -> Self
Declares the embedding and tokenizer identity used by this handle.
The tokenizer configuration defaults to
crate::fts::tokenizer::TokenizerConfig::text_default.
A non-default tokenizer epoch must be paired with Self::with_tokenizer.
Sourcepub fn with_tokenizer(self, tokenizer: TokenizerConfig) -> Self
pub fn with_tokenizer(self, tokenizer: TokenizerConfig) -> Self
Selects the tokenizer configuration used for indexing and queries.
Open rejects this configuration when its epoch differs from the declared or persisted store identity.
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more