pub enum OptionalTrustedPacketSequenceId {
TrustedPacketSequenceId(u32),
}
Expand description
Service-assigned identifier of the packet sequence this packet belongs to. Uniquely identifies a producer + writer pair within the tracing session. A value of zero denotes an invalid ID. Keep in sync with TrustedPacket.trusted_packet_sequence_id.
Variants§
Implementations§
Source§impl OptionalTrustedPacketSequenceId
impl OptionalTrustedPacketSequenceId
Sourcepub fn merge<B>(
field: &mut Option<OptionalTrustedPacketSequenceId>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<OptionalTrustedPacketSequenceId>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for OptionalTrustedPacketSequenceId
impl Clone for OptionalTrustedPacketSequenceId
Source§fn clone(&self) -> OptionalTrustedPacketSequenceId
fn clone(&self) -> OptionalTrustedPacketSequenceId
Returns a copy 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 PartialEq for OptionalTrustedPacketSequenceId
impl PartialEq for OptionalTrustedPacketSequenceId
Source§fn eq(&self, other: &OptionalTrustedPacketSequenceId) -> bool
fn eq(&self, other: &OptionalTrustedPacketSequenceId) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for OptionalTrustedPacketSequenceId
Auto Trait Implementations§
impl Freeze for OptionalTrustedPacketSequenceId
impl RefUnwindSafe for OptionalTrustedPacketSequenceId
impl Send for OptionalTrustedPacketSequenceId
impl Sync for OptionalTrustedPacketSequenceId
impl Unpin for OptionalTrustedPacketSequenceId
impl UnwindSafe for OptionalTrustedPacketSequenceId
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