pub struct SegmentAck {
pub negative_ack: bool,
pub sent_by_server: bool,
pub invoke_id: u8,
pub sequence_number: u8,
pub actual_window_size: u8,
}Expand description
SegmentACK PDU (Clause 20.1.6).
Fields§
§negative_ack: boolSet when a segment arrived out of order; the peer resends starting with the segment after
sequence_number.
sent_by_server: boolSet when the SegmentACK comes from the server side (the device answering a request), clear when sent by the requester.
invoke_id: u8Invoke ID of the segmented transaction being acknowledged.
sequence_number: u8Last segment received in order. It and every earlier segment are acknowledged; the peer continues (or, on a negative ack, resends) from the next one, modulo 256.
actual_window_size: u8Window size, in segments (1..=127), the receiver will accept from now on.
Trait Implementations§
Source§impl Clone for SegmentAck
impl Clone for SegmentAck
Source§impl Debug for SegmentAck
impl Debug for SegmentAck
impl Eq for SegmentAck
Source§impl PartialEq for SegmentAck
impl PartialEq for SegmentAck
impl StructuralPartialEq for SegmentAck
Auto Trait Implementations§
impl Freeze for SegmentAck
impl RefUnwindSafe for SegmentAck
impl Send for SegmentAck
impl Sync for SegmentAck
impl Unpin for SegmentAck
impl UnsafeUnpin for SegmentAck
impl UnwindSafe for SegmentAck
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