pub struct AckState { /* private fields */ }Expand description
ACK and timer state, driven by DataOutcome/GapOutcome from a backend.
Implementations§
Source§impl AckState
impl AckState
Sourcepub fn new(config: &ReceiverConfig, remote_address: Address) -> Self
pub fn new(config: &ReceiverConfig, remote_address: Address) -> Self
Create ACK state for a stream from receiver config and remote address.
Sourcepub fn on_ack_timeout(
&mut self,
seq: SequenceCount,
bitmap: u16,
) -> HandleResult
pub fn on_ack_timeout( &mut self, seq: SequenceCount, bitmap: u16, ) -> HandleResult
Handle delayed ACK timer expiry.
Sourcepub fn on_data(
&mut self,
outcome: DataOutcome,
seq: SequenceCount,
bitmap: u16,
) -> HandleResult
pub fn on_data( &mut self, outcome: DataOutcome, seq: SequenceCount, bitmap: u16, ) -> HandleResult
Produce ACK/timer actions after the backend processed a data packet.
Sourcepub fn on_gap_skip(&mut self, outcome: GapOutcome) -> HandleResult
pub fn on_gap_skip(&mut self, outcome: GapOutcome) -> HandleResult
Produce timer actions after the backend skipped a gap.
Auto Trait Implementations§
impl Freeze for AckState
impl RefUnwindSafe for AckState
impl Send for AckState
impl Sync for AckState
impl Unpin for AckState
impl UnsafeUnpin for AckState
impl UnwindSafe for AckState
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