pub struct AcknowledgementCheck { /* private fields */ }
Expand description
A checklist to store all Acknowledgements received.
- Used by sending module to test if a packet has already been acknowledged before sending it.
- Used by receiving module to add Acknowledgements that have been received
Implementations§
Source§impl AcknowledgementCheck
impl AcknowledgementCheck
Sourcepub fn new(begin: u32) -> AcknowledgementCheck
pub fn new(begin: u32) -> AcknowledgementCheck
Create a new instance of AcknowledgementCheck
list
§Arguments
begin
- Initial value of begin sequence number
Sourcepub fn acknowledge(&mut self, ack: Acknowledgement)
pub fn acknowledge(&mut self, ack: Acknowledgement)
Add Acknowledgement to the list based on the Acknowledgement
recevied
§Arguments
ack
- The Acknowledgement which is instance ofAcknowledgement
. This will be obtained from thePacket
received.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AcknowledgementCheck
impl RefUnwindSafe for AcknowledgementCheck
impl Send for AcknowledgementCheck
impl Sync for AcknowledgementCheck
impl Unpin for AcknowledgementCheck
impl UnwindSafe for AcknowledgementCheck
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