pub enum NakPdu<'a> {
Small(&'a NakPduSmall),
Large(&'a NakPduLarge),
}Expand description
A parsed NAK PDU, dispatching between small and large file variants.
Variants§
Small(&'a NakPduSmall)
NAK PDU for small file transactions (32-bit offsets).
Large(&'a NakPduLarge)
NAK PDU for large file transactions (64-bit offsets).
Implementations§
Source§impl<'a> NakPdu<'a>
impl<'a> NakPdu<'a>
Sourcepub fn start_of_scope(&self) -> u64
pub fn start_of_scope(&self) -> u64
Get the start_of_scope field as a u64.
Sourcepub fn end_of_scope(&self) -> u64
pub fn end_of_scope(&self) -> u64
Get the end_of_scope field as a u64.
Sourcepub fn segment_requests(&self) -> Result<NakSegmentsIterator<'a>, CfdpError>
pub fn segment_requests(&self) -> Result<NakSegmentsIterator<'a>, CfdpError>
Get the segment requests as a vector of NakSegmentRequest.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NakPdu<'a>
impl<'a> RefUnwindSafe for NakPdu<'a>
impl<'a> Send for NakPdu<'a>
impl<'a> Sync for NakPdu<'a>
impl<'a> Unpin for NakPdu<'a>
impl<'a> UnsafeUnpin for NakPdu<'a>
impl<'a> UnwindSafe for NakPdu<'a>
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