pub struct PDUHeader {
pub version: U3,
pub pdu_type: PDUType,
pub direction: Direction,
pub transmission_mode: TransmissionMode,
pub crc_flag: CRCFlag,
pub large_file_flag: FileSizeFlag,
pub pdu_data_field_length: u16,
pub segmentation_control: SegmentationControl,
pub segment_metadata_flag: SegmentedData,
pub source_entity_id: EntityID,
pub transaction_sequence_number: TransactionSeqNum,
pub destination_entity_id: EntityID,
}Expand description
The standard header attached to all CFDP PDUs.
Fields§
§version: U3header version number.
pdu_type: PDUTypeThe type of the underlying payload.
direction: DirectionThe direction in which this PDU is heading.
transmission_mode: TransmissionModeThe mode of the transaction.
crc_flag: CRCFlagWhether a CRC is appended to the PDU byte stream.
large_file_flag: FileSizeFlagFlag to indicate if the file size is less than the maximum u32 value.
pdu_data_field_length: u16The length of attached payload.
When the CRC flag is set to CRCFlag::Present this struct will automatically account for the additional length during encoding.
segmentation_control: SegmentationControlFlag to indicate if segmentation control is enabled for this transaction.
segment_metadata_flag: SegmentedDataFlag to indicate if metadata segmentation is enabled for this transaction.
source_entity_id: EntityIDSource entity identification number.
transaction_sequence_number: TransactionSeqNumThe sequence number of the transaction.
destination_entity_id: EntityIDDestination entity identification number.
Trait Implementations§
impl Eq for PDUHeader
impl StructuralPartialEq for PDUHeader
Auto Trait Implementations§
impl Freeze for PDUHeader
impl RefUnwindSafe for PDUHeader
impl Send for PDUHeader
impl Sync for PDUHeader
impl Unpin for PDUHeader
impl UnwindSafe for PDUHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more