Skip to main content

Module apply

Module apply 

Source
Expand description

Pure op-application dispatcher for array CRDT sync.

apply_op is the single entry point for merging an incoming ArrayOp into local engine state. It enforces shape validation, schema-version gating, idempotency, and tile-cache invalidation in a fixed order.

Engine implementations live in nodedb-lite and nodedb; this file ships only the abstract ApplyEngine trait, the outcome types, and the pure dispatcher function.

Enums§

ApplyOutcome
Outcome returned by apply_op.
ApplyRejection
Reason an op was rejected by apply_op.

Traits§

ApplyEngine
Abstract interface to local engine state consumed by apply_op.

Functions§

apply_op
Apply op to engine, returning an outcome without panicking.