Skip to main content

Config

Struct Config 

Source
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: NonZeroU64

changes.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: usize

Number of previous versions each branch record keeps, a whole number from 1 to KEPT_VERSIONS_MOST.

§retention: Config

STOR-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

Source

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.

Source

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.

Source

pub fn append_prune_limits(&self) -> Result<AppendPruneLimits, String>

§Errors

Refuses either zero retention setting before opening a store.

Source

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.

Source

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.

Source

pub fn embed_settings(&self) -> Result<Option<Settings>, String>

The required embedding settings, plus the optional writer wait.

§Errors

As embed::Options::resolve.

Trait Implementations§

Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Config

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoMaybeUndefined<T> for T

Source§

fn into_maybe_undefined(self) -> MaybeUndefined<T>

Converts this value into a three-state builder argument.
Source§

impl<T> IntoOption<T> for T

Source§

fn into_option(self) -> Option<T>

Converts this value into an optional builder argument.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more