Skip to main content

Module opts

Module opts 

Source
Expand description

Caller contract and result types for a fetch: Opts in, Outcome out.

Op selects the federation endpoint and folds into the single-flight dedup key; FanoutGrowth schedules the staged fan-out width.

Structs§

Opts
Caller contract. event_id is the sought datum for Op::Event / Op::AuthEvent / Op::AuthChain / Op::StateIds and a reference point for the others.
Outcome
Raw response body plus the server that answered. bytes is ref-counted so concurrent callers coalesced onto one fetch share a single buffer.

Enums§

FanoutGrowth
Per-round width schedule for staged fan-out: how many candidate servers a fetch races concurrently in each escalation round, before the worker’s per-round ceiling and remaining-budget clamps. Fixed(1) (the Opts::new default) reproduces strictly-sequential attempts.
Op
Federation endpoint a fetch targets. The dedup key folds this in, so two callers asking for the same event over different endpoints do not coalesce.

Type Aliases§

EventWindow
Event-id window for the batch ops, inline-sized for the common single-prev case and spilling to the heap past that.