pub struct SentPacket {
pub packet_type: PacketType,
pub payload: Box<[u8]>,
pub ordering_guarantee: OrderingGuarantee,
pub item_identifier: Option<SequenceNumber>,
pub sent_time: Instant,
}Expand description
Represents a packet that has been sent but not yet acknowledged.
Fields§
§packet_type: PacketTypeType of packet sent
payload: Box<[u8]>Payload data of the packet
ordering_guarantee: OrderingGuaranteeOrdering guarantee specified for this packet
item_identifier: Option<SequenceNumber>Optional identifier for ordering/sequencing
sent_time: InstantTimestamp when packet was sent (for RTT calculation)
Trait Implementations§
Source§impl Clone for SentPacket
impl Clone for SentPacket
Source§fn clone(&self) -> SentPacket
fn clone(&self) -> SentPacket
Returns a duplicate of the value. Read more
1.0.0 · 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 SentPacket
impl RefUnwindSafe for SentPacket
impl Send for SentPacket
impl Sync for SentPacket
impl Unpin for SentPacket
impl UnwindSafe for SentPacket
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