Skip to main content

Module mutation

Module mutation 

Source

Structs§

AppliedFrontier
The positions a node’s folds had applied when it answered, per surface. None for a surface whose fold has applied nothing yet. sessions covers the stream of a session read and is empty for every other reply.
ManagedReadEnvelope
A managed read sent with a consistency requirement. Unknown fields are refused, so no plain read request is ever taken for this frame.
ManagedReplyEnvelope
The reply to a managed request sent by an SDK client: the surface reply, plus the frontier the answering node had applied once it computed that reply. After a mutation the frontier covers the mutation itself, and after a read it covers every write the read could see. The client keeps the highest position per surface and sends it back as ManagedReadEnvelope::min_position. Unknown fields are refused, so no surface reply is ever taken for this frame.
ManagedRequestEnvelope
MutationCommandEnvelope
One managed command stored on a mutation topic. payload is the canonical typed request encoded with the normal wire framing for command_code, so append and fold share one request schema instead of maintaining a second mutation representation.
MutationPosition
Position of one applied mutation on the KV mutation topic: the fold coordinate a barriered read waits for. A lease grant or renewal returns the position at which the answering fold applied it, and a crate::kv::KvGet carrying it as min_position must not be answered by a fold that has not applied that position yet. Positions compare only within one topic_generation: a generation mismatch is fail-closed (crate::kv::KvError::Stale), never an implicit reset.
SessionPosition
How far a node’s session fold has applied one partition of a session source. Positions compare only within one stream and topic generation.

Enums§

PositionSurface
A managed surface with its own mutation log and fold.

Constants§

MANAGED_REQUEST_VERSION