pub struct HTTStorageConfigBuilder { /* private fields */ }Expand description
Builder for HTT storage configuration.
Implementations§
Source§impl HTTStorageConfigBuilder
impl HTTStorageConfigBuilder
Sourcepub fn max_memory_nodes(self, max_memory_nodes: usize) -> Self
pub fn max_memory_nodes(self, max_memory_nodes: usize) -> Self
Set the maximum in-memory nodes.
Sourcepub fn cache_size(self, cache_size: usize) -> Self
pub fn cache_size(self, cache_size: usize) -> Self
Set the cache size.
Sourcepub fn storage_path(self, storage_path: Option<String>) -> Self
pub fn storage_path(self, storage_path: Option<String>) -> Self
Set the storage path.
Sourcepub fn flush_interval(self, flush_interval: u64) -> Self
pub fn flush_interval(self, flush_interval: u64) -> Self
Set the flush interval.
Sourcepub fn optimize_on_shutdown(self, optimize_on_shutdown: bool) -> Self
pub fn optimize_on_shutdown(self, optimize_on_shutdown: bool) -> Self
Set optimize on shutdown.
Sourcepub fn tau(self, tau: FixedPoint) -> Self
pub fn tau(self, tau: FixedPoint) -> Self
Set the Sarkar embedding scale factor τ (zero = use default of 1.0).
Sourcepub fn build(self) -> HTTStorageConfig
pub fn build(self) -> HTTStorageConfig
Build the configuration.
Auto Trait Implementations§
impl Freeze for HTTStorageConfigBuilder
impl RefUnwindSafe for HTTStorageConfigBuilder
impl Send for HTTStorageConfigBuilder
impl Sync for HTTStorageConfigBuilder
impl Unpin for HTTStorageConfigBuilder
impl UnsafeUnpin for HTTStorageConfigBuilder
impl UnwindSafe for HTTStorageConfigBuilder
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