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: ResourceDialect> Decode<Packet, D> for Packet
impl<D: ResourceDialect> Decode<Packet, D> for Packet
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
.§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 more§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
impl Persistable for Packet
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)