pub struct OutboundSegment {
pub stream_offset: SequenceNumber,
pub data: Bytes,
pub reliable: bool,
pub retransmit: bool,
}Available on crate feature
std only.Expand description
One segment handed back by Stream::poll_send for transmission.
Fields§
§stream_offset: SequenceNumberGap-free per-stream reliable-data offset (A.5). The send path prepends it (big-endian u32) to the AEAD plaintext of a reliable segment so the receiver reassembles in send order regardless of control-frame holes. Meaningless for unreliable segments (the send path does not prefix those).
data: BytesPayload bytes.
reliable: boolWhether the segment is on the reliable (ACK-tracked) path.
retransmit: boolTrue when this is a retransmission (the RTO expired) rather than a first transmission — the caller reports it to congestion control as a loss.
Trait Implementations§
Source§impl Clone for OutboundSegment
impl Clone for OutboundSegment
Source§fn clone(&self) -> OutboundSegment
fn clone(&self) -> OutboundSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for OutboundSegment
impl RefUnwindSafe for OutboundSegment
impl Send for OutboundSegment
impl Sync for OutboundSegment
impl Unpin for OutboundSegment
impl UnsafeUnpin for OutboundSegment
impl UnwindSafe for OutboundSegment
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