pub struct OutboundSegment {
pub seq: SequenceNumber,
pub data: Bytes,
pub reliable: bool,
pub retransmit: bool,
}Expand description
One segment handed back by Stream::poll_send for transmission.
Fields§
§seq: SequenceNumberSequence number of the segment.
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