pub struct Packet {
pub payload: Option<PayloadRange>,
pub timestamp: Option<Timestamp>,
pub capture_timestamp: Option<i64>,
pub flags: Option<PacketFlags>,
pub front_frames_to_drop: Option<u32>,
pub back_frames_to_drop: Option<u32>,
pub encryption_properties: Option<PacketEncryptionProperties>,
/* private fields */
}
Expand description
Describes a packet delivered via StreamSink
.
Fields§
§payload: Option<PayloadRange>
Location of the payload for this packet. This field is required.
timestamp: Option<Timestamp>
Timestamp indicating when this packet should be presented. Omitting this field implies an
unspecified_best_effort
timestamp.
capture_timestamp: Option<i64>
Capture time for this packet as a system monotonic time value. This field is optional and may be set by capturers to indicate when this packet was captured.
flags: Option<PacketFlags>
Flags describing the packet. Omitting this field implies all flags are clear.
front_frames_to_drop: Option<u32>
Indicates how many frames should be dropped from the front of the output packet produced by a decoder from this input packet. This value should only be provided for compressed streams. If this field is omitted, no front frames should be dropped.
back_frames_to_drop: Option<u32>
Indicates how many frames should be dropped from the back of the output packet produced by a decoder from this input packet. This value should only be provided for compressed streams. If this field is omitted, no back frames should be dropped.
encryption_properties: Option<PacketEncryptionProperties>
Describes the encryption applied to this packet. Omitting this field implies the packet is not encrypted.
Trait Implementations§
Source§impl<D> Decode<Packet, D> for Packetwhere
D: ResourceDialect,
impl<D> Decode<Packet, D> for Packetwhere
D: ResourceDialect,
Source§impl TypeMarker for Packet
impl TypeMarker for Packet
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Packet
impl ValueTypeMarker for Packet
Source§type Borrowed<'a> = &'a Packet
type Borrowed<'a> = &'a Packet
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<Packet as TypeMarker>::Owned,
) -> <Packet as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<Packet as TypeMarker>::Owned, ) -> <Packet as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.