Expand description
Shared types of the artifact piece protocol (mesh-placement-11):
ids, keys, the have bitfield, the piece-list descriptor, limits and
exchange configuration. See crate::mesh_artifact_wire for the codec.
Structs§
- Artifact
Descriptor - The piece list that defines an artifact.
- Artifact
Id - Content-derived artifact id: root hash over the ordered piece list
(see
ArtifactDescriptor::id). - Bitfield
- One bit per piece: set when the piece is held and verified.
- Exchange
Config - Tunables for one node’s exchange.
Enums§
- Artifact
Key - How a fetch names what it wants.
- Exchange
Error - Local exchange failure.
- Wire
Error - Wire-level failure.
Constants§
- DEFAULT_
BLOCK_ SIZE - Default block size for piece data on the wire.
- DEFAULT_
MAX_ ARTIFACT_ BYTES - Largest artifact a node accepts by default (a caller that knows the size from a signed manifest passes the exact size instead).
- DEFAULT_
MAX_ PIECE_ SIZE - Largest piece size a node accepts from a peer by default: with at most
max_sourcespieces buffered at once, memory is bounded by their product. - DEFAULT_
PIECE_ SIZE - Default piece size (ADR-099 section 6 placeholder).
- MAX_
ARTIFACT_ FRAME - Per-frame payload cap for 0x0B / 0x0C frames.
- MAX_
PIECE_ SIZE - Largest accepted piece size.
- MAX_
REASON_ BYTES - Longest
rejectreason. - MAX_
REQUEST_ PIECES - Most piece indexes in one
request. - MIN_
PIECE_ SIZE - Smallest accepted piece size.