#[repr(C)]pub enum SentPacketField {
PacketNumber = 0,
AckEliciting = 1,
InFlight = 2,
SentBytes = 3,
TimeSent = 4,
SourceAddress = 5,
DestinationAddress = 6,
}
Expand description
Fields of the SentPacket as defined by quic-recovery, Section A.1.1. Compared to the specification, additional fields are present.
Variants§
PacketNumber = 0
The packet number of the sent packet.
AckEliciting = 1
A boolean that indicates whether a packet is ack-eliciting. If true, it is expected that an acknowledgement will be received, though the peer could delay sending the ACK frame containing it by up to the max_ack_delay.
InFlight = 2
A boolean that indicates whether the packet counts towards bytes in flight.
SentBytes = 3
The number of bytes sent in the packet, not including UDP or IP overhead, but including QUIC framing overhead.
TimeSent = 4
The time the packet was sent, as a Instant
.
SourceAddress = 5
The source address used by this packet, as a SocketAddr
.
DestinationAddress = 6
The destination address used by this packet, as a `SocketAddr´.
Trait Implementations§
Source§impl Clone for SentPacketField
impl Clone for SentPacketField
Source§fn clone(&self) -> SentPacketField
fn clone(&self) -> SentPacketField
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 moreSource§impl Debug for SentPacketField
impl Debug for SentPacketField
Source§impl<'de> Deserialize<'de> for SentPacketField
impl<'de> Deserialize<'de> for SentPacketField
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SentPacketField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SentPacketField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SentPacketField
impl Serialize for SentPacketField
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for SentPacketField
Auto Trait Implementations§
impl Freeze for SentPacketField
impl RefUnwindSafe for SentPacketField
impl Send for SentPacketField
impl Sync for SentPacketField
impl Unpin for SentPacketField
impl UnwindSafe for SentPacketField
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out
indicating that a T
is niched.