Skip to main content

Module traits

Module traits 

Source
Expand description

Trait surface for paradigm-specific partial bodies.

vernier-partial owns the wire envelope (magic, version, CRC, header) and the partition + rank-collision policy; each paradigm crate owns its body type and its merge accumulator. The traits here are the seam.

Encode and decode are routed through crate::envelope::encode and crate::envelope::with_validated_envelope respectively, both of which take the body archive bytes as already-rkyv-archived &[u8] so this crate never touches paradigm-specific rkyv generics.

Structs§

PartialExpectation
Receiving rank’s expectation of what a partial should look like. Each paradigm builds one from its own (dataset, params, parity_mode, evaluator config) and passes it to crate::envelope::with_validated_envelope.

Enums§

ParadigmKind
Paradigm discriminator carried in the wire envelope header.

Traits§

Partial
Marker trait declaring the paradigm a partial body type belongs to. Each paradigm crate implements this on its WirePartialBody (or equivalent) wire-form struct.