pub struct Config {Show 45 fields
pub mcp_http: Option<Config>,
pub data_dir: PathBuf,
pub socket: Option<PathBuf>,
pub name: Option<String>,
pub branch_cache_bytes_per_shard: NonZeroUsize,
pub max_frame: NonZeroU32,
pub max_clients: NonZeroUsize,
pub max_page: NonZeroU32,
pub append_prune_keep_ceiling: u32,
pub append_prune_removal_cap: u32,
pub timeout_ms: NonZeroU64,
pub create: Option<Creation>,
pub changes_scan_records: NonZeroU64,
pub changes_node_budget: NonZeroUsize,
pub changes_max_page: NonZeroU32,
pub query_time_ms: Setting<u64>,
pub query_memory_bytes: Setting<u64>,
pub query_outputs_per_record: Setting<u64>,
pub query_scan_records: Setting<u64>,
pub query_max_running: Setting<u64>,
pub query_worker: Setting<PathBuf>,
pub embed_worker: Setting<PathBuf>,
pub embed_model_dir: Setting<PathBuf>,
pub embed_model_sha256: Setting<String>,
pub embed_memory_bytes: Setting<u64>,
pub embed_threads: Setting<u64>,
pub embed_batch_items: Setting<u64>,
pub embed_input_bytes: Setting<u64>,
pub embed_tokens: Setting<u64>,
pub embed_frame_bytes: Setting<u32>,
pub embed_ready_ms: Setting<u64>,
pub embed_call_ms: Setting<u64>,
pub embed_waiting: Setting<u64>,
pub embed_request_items: Setting<u64>,
pub embed_page_records: Setting<u64>,
pub embed_writer_wait_ms: Setting<u64>,
pub embed_windows: Setting<bool>,
pub embed_max_windows: Setting<u64>,
pub embed_window_overlap_tokens: Setting<u64>,
pub embed_restart_ms: Setting<u64>,
pub embed_restart_most_ms: Setting<u64>,
pub embed_question_worker: Setting<bool>,
pub kept_versions: usize,
pub retention: Config,
pub lys: Option<LysConfig>,
}Fields§
§mcp_http: Option<Config>§data_dir: PathBuf§socket: Option<PathBuf>§name: Option<String>§branch_cache_bytes_per_shard: NonZeroUsize§max_frame: NonZeroU32§max_clients: NonZeroUsize§max_page: NonZeroU32§append_prune_keep_ceiling: u32§append_prune_removal_cap: u32§timeout_ms: NonZeroU64§create: Option<Creation>§changes_scan_records: NonZeroU64changes.list’s limits, each defaulted when absent.
changes_node_budget: NonZeroUsize§changes_max_page: NonZeroU32§query_time_ms: Setting<u64>§query_memory_bytes: Setting<u64>§query_outputs_per_record: Setting<u64>§query_scan_records: Setting<u64>§query_max_running: Setting<u64>§query_worker: Setting<PathBuf>§embed_worker: Setting<PathBuf>§embed_model_dir: Setting<PathBuf>§embed_model_sha256: Setting<String>§embed_memory_bytes: Setting<u64>§embed_threads: Setting<u64>§embed_batch_items: Setting<u64>§embed_input_bytes: Setting<u64>§embed_tokens: Setting<u64>§embed_frame_bytes: Setting<u32>§embed_ready_ms: Setting<u64>§embed_call_ms: Setting<u64>§embed_waiting: Setting<u64>§embed_request_items: Setting<u64>§embed_page_records: Setting<u64>§embed_writer_wait_ms: Setting<u64>§embed_windows: Setting<bool>EMB-E2: embed a text longer than the model reads whole, as windows.
embed_max_windows: Setting<u64>EMB-E2: the most windows one text is embedded as; 32 when absent.
embed_window_overlap_tokens: Setting<u64>EMB-E2: the tokens consecutive windows share; 64 when absent.
embed_restart_ms: Setting<u64>EWR1: the wait before the second start of an embedding worker that died, doubled for each later one; one second when absent.
embed_restart_most_ms: Setting<u64>EWR1: the longest wait between two starts of the embedding worker; five minutes when absent.
embed_question_worker: Setting<bool>SL1: whether text search asks its questions of a worker of its own,
started on the first search, so a search never waits behind the
embedding walk. On when absent. It holds its own copy of the model:
with it the two workers may use twice embed_memory_bytes.
kept_versions: usizeNumber of previous versions each branch record keeps,
a whole number from 1 to KEPT_VERSIONS_MOST.
retention: ConfigSTOR-003 HR4: when the release thread runs and what it keeps.
lys: Option<LysConfig>ACCESS-001 R2: decide every request through this Lys. Absent, the service is its owner’s alone, reached only by its 0700 socket, and decides nothing.
Implementations§
Source§impl Config
impl Config
Sourcepub fn endpoint(&self, create: bool) -> Result<Endpoint, Refusal>
pub fn endpoint(&self, create: bool) -> Result<Endpoint, Refusal>
Resolves the endpoint when a caller needs it; deserialization remains pure.
§Errors
Returns the runtime resolver’s named input, ownership and OS-query refusals.
Sourcepub fn kept_limit(&self) -> Result<KeptLimit, String>
pub fn kept_limit(&self) -> Result<KeptLimit, String>
The kept window every branch record keeps.
§Errors
Only for a kept_versions of zero, which loading refuses first.
Sourcepub fn append_prune_limits(&self) -> Result<AppendPruneLimits, String>
pub fn append_prune_limits(&self) -> Result<AppendPruneLimits, String>
§Errors
Refuses either zero retention setting before opening a store.
Sourcepub fn changes_settings(&self) -> Result<Settings, String>
pub fn changes_settings(&self) -> Result<Settings, String>
changes.list’s limits; a page must be able to move past a change.
§Errors
Refuses changes_scan_records below two, which cannot advance a page.
Sourcepub fn query_settings(&self) -> Result<Option<Settings>, String>
pub fn query_settings(&self) -> Result<Option<Settings>, String>
Resolve the optional query settings as one complete group.
§Errors
Refuses missing, zero, out-of-range or incompatible settings and a worker path that is not absolute.