Rindle docs and package mapSkip to main content

JoinPrecheckBounds

Struct JoinPrecheckBounds 

Source
pub struct JoinPrecheckBounds {
    pub per_join: Option<usize>,
    pub per_graph: usize,
}
Expand description

The two bounds of the join membership pre-check (design 311 §2.5), host-settable via Graph::set_join_precheck_bounds.

Every approximation the pre-check makes errs toward fetching: a join whose parent key set would cross per_join distinct keys, or whose keys would push the graph’s total past per_graph, drops its set and falls back to today’s fetch for the rest of its life. So the bounds cap memory, never correctness — O(registered regions), not O(data) (§6).

Fields§

§per_join: Option<usize>

Distinct parent keys one join may track; None turns the pre-check off graph-wide (no observation, no maintenance, no probe — today’s path byte for byte).

§per_graph: usize

Total distinct keys tracked across every join in the graph. Many joins each near their own bound cannot compound past this.

Implementations§

Source§

impl JoinPrecheckBounds

Source

pub const DEFAULT_PER_JOIN: usize = 4096

The per-join bound the design suggests for the daemon (~400 KB worst case per join).

Source

pub const DEFAULT_PER_GRAPH: usize = 65_536

The per-graph budget the design suggests for the daemon (~6.5 MB worst case).

Source

pub const OFF: JoinPrecheckBounds

Pre-check off — today’s path byte for byte (no observation, no maintenance, no probe). The S1 default of every Graph until S2 flipped it (design 311 §9); the daemon’s joinPrecheckPerJoin: 0 and the test/testkit/debug-build RINDLE_JOIN_PRECHECK=off both land here.

Source

pub const ON: JoinPrecheckBounds

Pre-check on at the design’s suggested bounds (4096 / 65 536).

Trait Implementations§

Source§

impl Clone for JoinPrecheckBounds

Source§

fn clone(&self) -> JoinPrecheckBounds

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for JoinPrecheckBounds

Source§

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

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

impl Default for JoinPrecheckBounds

Source§

fn default() -> Self

JoinPrecheckBounds::ON — design 311 §9 S2 (2026-09-02): every Graph starts with the pre-check on at the daemon bounds, so every operator, parity, oracle and fuzz lane exercises it without naming it. OFF is one Graph::set_join_precheck_bounds call away (the daemon’s joinPrecheckPerJoin: 0).

Source§

impl PartialEq for JoinPrecheckBounds

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for JoinPrecheckBounds

Source§

impl Eq for JoinPrecheckBounds

Source§

impl StructuralPartialEq for JoinPrecheckBounds

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.