Skip to main content

Module mesh_artifact_types

Module mesh_artifact_types 

Source
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§

ArtifactDescriptor
The piece list that defines an artifact.
ArtifactId
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.
ExchangeConfig
Tunables for one node’s exchange.

Enums§

ArtifactKey
How a fetch names what it wants.
ExchangeError
Local exchange failure.
WireError
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_sources pieces 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 reject reason.
MAX_REQUEST_PIECES
Most piece indexes in one request.
MIN_PIECE_SIZE
Smallest accepted piece size.