Skip to main content

IndexedConfig

Struct IndexedConfig 

Source
#[non_exhaustive]
pub struct IndexedConfig { pub max_delta_chain_depth: u32, pub relay_lag_bound_ms: u64, pub max_pack_bytes: u64, pub decode_budget: u64, pub extract_min_bytes: u64, pub max_extract_bytes: Option<u64>, pub verification: VerificationMode, pub max_ancestry_commits: u32, }
Expand description

Limits for opt-in indexed mode. A deployment cannot switch an existing opaque repository to indexed mode: its member packs have no i rows. Native embedders configure it programmatically; Workers enable it through the Paid Workers launch profile with scheduled verification, permanent retention and GC disabled. Async inspection and holds remain post-launch features.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§max_delta_chain_depth: u32

Maximum total delta chain depth across in-pack and member bases.

§relay_lag_bound_ms: u64

Repository membership lag window in milliseconds.

§max_pack_bytes: u64

Largest accepted indexed pack.

§decode_budget: u64

Whole-pack decoding budget; at least max_pack_bytes. Each canonical entry and encoded frame also obeys geometry, in either verification mode.

§extract_min_bytes: u64

Least Blob size extracted into the global object store, at least 1. Never advertised (SPEC-SERVER §9.6).

§max_extract_bytes: Option<u64>

Most content bytes one advance may reassemble into the object store, and most member bytes it may resolve to do so. A small manifest over many member chunks amplifies into a large reassembly; exceeding this is pack exceeds indexed decode budget. None derives 4 * max_pack_bytes when the pipeline is built; a set value must be at least max_pack_bytes.

§verification: VerificationMode

Where verification runs: inline in the advance, or in checkpointed alarm slices (WP-4.8). Programmatic only.

§max_ancestry_commits: u32

Most member commits and uncached delta bases one fast-forward check may resolve (WP-4.17), from 1 to MAX_ANCESTRY_COMMITS_LIMIT. Beyond it the check is unproven and the write is denied.

Implementations§

Source§

impl IndexedConfig

Source

pub fn scheduled(max_pack_bytes: u64) -> Self

Scheduled verification (WP-4.8) for packs up to max_pack_bytes, every other limit at its default; the decode budget is raised to cover the pack cap when that is larger.

Source

pub fn effective_max_extract_bytes(&self) -> u64

Self::max_extract_bytes, or 4 * max_pack_bytes when unset.

Trait Implementations§

Source§

impl Clone for IndexedConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for IndexedConfig

Source§

impl Debug for IndexedConfig

Source§

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

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

impl Default for IndexedConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for IndexedConfig

Source§

impl PartialEq for IndexedConfig

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for IndexedConfig

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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
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> MaybeSend for T
where T: Send + ?Sized,

Source§

impl<T> MaybeSync for T
where T: Sync + ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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