pub struct NamespaceOpts {
pub path: Option<PathBuf>,
pub shards: usize,
pub mem_budget_mb: Option<usize>,
}Expand description
Commonly used items, re-exported for convenience.
This includes data size constants (KB, MB, GB),
raw data types (RawBytes, RawKey, RawValue), and functions for managing
the database environment (e.g., vsdb_flush, vsdb_configure).
Creation-time options; persisted in the registry. Everything is
defaulted — this struct exists for the advanced tier.
Fields§
§path: Option<PathBuf>None ⇒ derived under {default_base}/__NAMESPACES__/, recorded
as derived so the whole universe stays movable as one tree.
Some ⇒ explicit root (e.g. a dir on another volume), stored
absolute and pinned (Namespace::relocate to move). Rejected if
it nests inside the default base dir or another registered
namespace root (or vice versa).
shards: usizeShard count, fixed at creation (routing is prefix % shards).
Clamped to 1..=64.
mem_budget_mb: Option<usize>Memory sizing input in MiB; None ⇒ 512 MiB. Cache/buffer floors
and caps apply; this is not a hard RSS limit.
Trait Implementations§
Source§impl Clone for NamespaceOpts
impl Clone for NamespaceOpts
Source§fn clone(&self) -> NamespaceOpts
fn clone(&self) -> NamespaceOpts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more