pub struct Traversal {
pub depth: u32,
pub as_of: Option<TimestampMs>,
pub as_at: Option<TimestampMs>,
pub group_id: Option<String>,
pub max_nodes: usize,
}Expand description
Parameters for Grit::traverse. Default gives depth 3 (the AGENTS.md
default bound), both timelines evaluated “now”, no group filter.
Fields§
§depth: u32Maximum hops from the seed set (inclusive bound; default 3).
as_of: Option<TimestampMs>Event-time instant: only walk edges whose [valid_at, invalid_at)
interval contains this. None = clock now.
as_at: Option<TimestampMs>System-time instant (“what did I believe at t?”): only walk edges whose
[created_at, expired_at) interval contains this. None = clock now.
group_id: Option<String>Restrict the walk to one namespace.
max_nodes: usizeNode budget: the walk halts (breadth-first, nearest wins) once this many nodes are reached. Keeps traversal latency independent of neighborhood size — Layer 3 asks for “context that fits”, never the 7,000-node ball around a hub. Default 256.
Implementations§
Source§impl Traversal
impl Traversal
Sourcepub fn as_of(self, t: TimestampMs) -> Self
pub fn as_of(self, t: TimestampMs) -> Self
Set the event-time instant.
Sourcepub fn as_at(self, t: TimestampMs) -> Self
pub fn as_at(self, t: TimestampMs) -> Self
Set the system-time (belief) instant — this is the time-travel knob.