pub struct HTTStorageConfig {
pub dimension: usize,
pub max_memory_nodes: usize,
pub cache_size: usize,
pub storage_path: Option<String>,
pub flush_interval: u64,
pub optimize_on_shutdown: bool,
pub tau: FixedPoint,
}Expand description
Configuration for HTT storage.
Fields§
§dimension: usizeDimension of the hyperbolic space
max_memory_nodes: usizeMaximum in-memory nodes before flushing to storage
cache_size: usizeCache size for frequently accessed nodes
storage_path: Option<String>Persistent storage path (if used)
flush_interval: u64Flush interval in seconds (if persistence is enabled)
optimize_on_shutdown: boolWhether to optimize on shutdown
tau: FixedPointSarkar embedding scale factor τ (zero = use default of 1.0)
Implementations§
Trait Implementations§
Source§impl Clone for HTTStorageConfig
impl Clone for HTTStorageConfig
Source§fn clone(&self) -> HTTStorageConfig
fn clone(&self) -> HTTStorageConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HTTStorageConfig
impl Debug for HTTStorageConfig
Auto Trait Implementations§
impl Freeze for HTTStorageConfig
impl RefUnwindSafe for HTTStorageConfig
impl Send for HTTStorageConfig
impl Sync for HTTStorageConfig
impl Unpin for HTTStorageConfig
impl UnsafeUnpin for HTTStorageConfig
impl UnwindSafe for HTTStorageConfig
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