Merge pull request 'improve CFDP module' (#154) from cfdp-module-improvements into main
Reviewed-on: #154
This commit was merged in pull request #154.
This commit is contained in:
@@ -44,9 +44,6 @@ impl<'seg_reqs> NakPduCreator<'seg_reqs> {
|
|||||||
/// Please note that the start of scope and the end of scope need to be smaller or equal
|
/// Please note that the start of scope and the end of scope need to be smaller or equal
|
||||||
/// to [u32::MAX] if the large file flag of the passed PDU configuration is
|
/// to [u32::MAX] if the large file flag of the passed PDU configuration is
|
||||||
/// [LargeFileFlag::Normal].
|
/// [LargeFileFlag::Normal].
|
||||||
///
|
|
||||||
/// ## Errrors
|
|
||||||
///
|
|
||||||
pub fn new_no_segment_requests(
|
pub fn new_no_segment_requests(
|
||||||
pdu_header: PduHeader,
|
pdu_header: PduHeader,
|
||||||
start_of_scope: u64,
|
start_of_scope: u64,
|
||||||
@@ -138,6 +135,7 @@ impl<'seg_reqs> NakPduCreator<'seg_reqs> {
|
|||||||
self.segment_requests.as_ref()
|
self.segment_requests.as_ref()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn num_segment_reqs(&self) -> usize {
|
pub fn num_segment_reqs(&self) -> usize {
|
||||||
match &self.segment_requests {
|
match &self.segment_requests {
|
||||||
Some(seg_reqs) => match seg_reqs {
|
Some(seg_reqs) => match seg_reqs {
|
||||||
@@ -255,7 +253,6 @@ impl WritablePduPacket for NakPduCreator<'_> {
|
|||||||
self.write_to_bytes(buf)
|
self.write_to_bytes(buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
|
||||||
fn len_written(&self) -> usize {
|
fn len_written(&self) -> usize {
|
||||||
self.len_written()
|
self.len_written()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user