TLV and TV abstractions complete
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit
Rust/spacepackets/pipeline/pr-main There was a failure building this commit

This commit is contained in:
2023-05-18 15:01:08 +02:00
parent 0c085ef27b
commit b37d932e4f
5 changed files with 187 additions and 53 deletions

View File

@ -1,15 +1,17 @@
use crate::cfdp::lv::Lv;
use crate::cfdp::pdu::{FileDirectiveType, PduHeader};
use crate::cfdp::ChecksumType;
pub struct MetadataParams {
pub struct MetadataGenericParams {
closure_requested: bool,
checksum_type: ChecksumType,
file_size: u64,
//src_file_name:
}
pub struct MetadataPdu {
pub struct MetadataPdu<'src_name, 'dest_name> {
pdu_header: PduHeader,
file_directive: FileDirectiveType,
metadata_params: MetadataParams,
metadata_params: MetadataGenericParams,
src_file_name: Option<Lv<'src_name>>,
dest_file_name: Option<Lv<'dest_name>>,
}