#[repr(i32)]pub enum SequenceFlags {
SeqUnspecified = 0,
SeqIncrementalStateCleared = 1,
SeqNeedsIncrementalState = 2,
}Variants§
SeqUnspecified = 0
SeqIncrementalStateCleared = 1
Set by the writer to indicate that it will re-emit any incremental data for the packet’s sequence before referring to it again. This includes interned data as well as periodically emitted data like Process/ThreadDescriptors. This flag only affects the current packet sequence (see |trusted_packet_sequence_id|).
When set, this TracePacket and subsequent TracePackets on the same sequence will not refer to any incremental data emitted before this TracePacket. For example, previously emitted interned data will be re-emitted if it is referred to again.
When the reader detects packet loss (|previous_packet_dropped|), it needs to skip packets in the sequence until the next one with this flag set, to ensure intact incremental data.
SeqNeedsIncrementalState = 2
This packet requires incremental state, such as TracePacketDefaults or InternedData, to be parsed correctly. The trace reader should skip this packet if incremental state is not valid on this sequence, i.e. if no packet with the SEQ_INCREMENTAL_STATE_CLEARED flag has been seen on the current |trusted_packet_sequence_id|.
Implementations§
Source§impl SequenceFlags
impl SequenceFlags
Source§impl SequenceFlags
impl SequenceFlags
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<SequenceFlags>
pub fn from_str_name(value: &str) -> Option<SequenceFlags>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for SequenceFlags
impl Clone for SequenceFlags
Source§fn clone(&self) -> SequenceFlags
fn clone(&self) -> SequenceFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SequenceFlags
impl Debug for SequenceFlags
Source§impl Default for SequenceFlags
impl Default for SequenceFlags
Source§fn default() -> SequenceFlags
fn default() -> SequenceFlags
Source§impl Hash for SequenceFlags
impl Hash for SequenceFlags
Source§impl Ord for SequenceFlags
impl Ord for SequenceFlags
Source§fn cmp(&self, other: &SequenceFlags) -> Ordering
fn cmp(&self, other: &SequenceFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SequenceFlags
impl PartialEq for SequenceFlags
Source§impl PartialOrd for SequenceFlags
impl PartialOrd for SequenceFlags
Source§impl TryFrom<i32> for SequenceFlags
impl TryFrom<i32> for SequenceFlags
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<SequenceFlags, UnknownEnumValue>
fn try_from(value: i32) -> Result<SequenceFlags, UnknownEnumValue>
impl Copy for SequenceFlags
impl Eq for SequenceFlags
impl StructuralPartialEq for SequenceFlags
Auto Trait Implementations§
impl Freeze for SequenceFlags
impl RefUnwindSafe for SequenceFlags
impl Send for SequenceFlags
impl Sync for SequenceFlags
impl Unpin for SequenceFlags
impl UnwindSafe for SequenceFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].