Skip to main content

Module pdu

Module pdu 

Source
Expand description

PDU parsing, serialization, and zero-copy views. Defines the structures and serialization/deserialization logic for CCSDS File Delivery Protocol (CFDP) Protocol Data Units (PDUs).

This module provides safe, zero-copy views and builders for CFDP PDUs, following the pattern used by SpacePacket. A single PDU enum, Pdu<'a>, holds references to concrete PDU types that are views over the underlying network buffer. This allows for efficient, allocation-free parsing of incoming packets.

Modules§

file_data
File Data PDU types and builders.
file_directive
File Directive PDU types (EOF, Finished, ACK, Metadata, NAK, Prompt, KeepAlive).
header
PDU header structures and field accessors.
tlv
Type-Length-Value (TLV) record types and iterators.

Structs§

EntityId
The unique identifier for a CFDP entity, stored as an owned u64.
Pdu
A zero-copy view of a generic CFDP PDU, containing the header and raw bytes.
PduBuilder
Use builder syntax to set the inputs and finish with build().
TransactionSeqNum
A CFDP transaction sequence number, stored as an owned u64.

Enums§

PduVariant
An enum representing a zero-copy view of a parsed PDU.