Struct aether_lib::acknowledgement::AcknowledgementCheck
source · [−]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
sourceimpl 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 RefUnwindSafe for AcknowledgementCheck
impl Send for AcknowledgementCheck
impl Sync for AcknowledgementCheck
impl Unpin for AcknowledgementCheck
impl UnwindSafe for AcknowledgementCheck
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more