pub struct NegativeAcknowledgmentPDU {
pub start_of_scope: u64,
pub end_of_scope: u64,
pub segment_requests: Vec<SegmentRequestForm>,
}Fields§
§start_of_scope: u64§end_of_scope: u64§segment_requests: Vec<SegmentRequestForm>Implementations§
Source§impl NegativeAcknowledgmentPDU
impl NegativeAcknowledgmentPDU
Sourcepub fn max_nak_num(file_size_flag: FileSizeFlag, payload_len: u32) -> u32
pub fn max_nak_num(file_size_flag: FileSizeFlag, payload_len: u32) -> u32
returns the maximum number of nak segments which can fit into one PDU given the payload length
Trait Implementations§
Source§impl Clone for NegativeAcknowledgmentPDU
impl Clone for NegativeAcknowledgmentPDU
Source§fn clone(&self) -> NegativeAcknowledgmentPDU
fn clone(&self) -> NegativeAcknowledgmentPDU
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NegativeAcknowledgmentPDU
impl Debug for NegativeAcknowledgmentPDU
Source§impl FSSEncode for NegativeAcknowledgmentPDU
impl FSSEncode for NegativeAcknowledgmentPDU
type PDUType = NegativeAcknowledgmentPDU
Source§fn encoded_len(&self, file_size_flag: FileSizeFlag) -> u16
fn encoded_len(&self, file_size_flag: FileSizeFlag) -> u16
Gets the encoded length must fit in a u16 for PDUs
impl Eq for NegativeAcknowledgmentPDU
impl StructuralPartialEq for NegativeAcknowledgmentPDU
Auto Trait Implementations§
impl Freeze for NegativeAcknowledgmentPDU
impl RefUnwindSafe for NegativeAcknowledgmentPDU
impl Send for NegativeAcknowledgmentPDU
impl Sync for NegativeAcknowledgmentPDU
impl Unpin for NegativeAcknowledgmentPDU
impl UnwindSafe for NegativeAcknowledgmentPDU
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