pub struct IncrementalStateConfig {
pub clear_period_ms: Option<u32>,
}
Expand description
Configuration for trace contents that reference earlier trace data. For example, a data source might intern strings, and emit packets containing {interned id : string} pairs. Future packets from that data source can then use the interned ids instead of duplicating the raw string contents. The trace parser will then need to use that interning table to fully interpret the rest of the trace.
Fields§
§clear_period_ms: Option<u32>
If nonzero, notify eligible data sources to clear their incremental state periodically, with the given period. The notification is sent only to data sources that have |handles_incremental_state_clear| set in their DataSourceDescriptor. The notification requests that the data source stops referring to past trace contents. This is particularly useful when tracing in ring buffer mode, where it is not exceptional to overwrite old trace data.
Warning: this time-based global clearing is likely to be removed in the future, to be replaced with a smarter way of sending the notifications only when necessary.
Implementations§
Source§impl IncrementalStateConfig
impl IncrementalStateConfig
Sourcepub fn clear_period_ms(&self) -> u32
pub fn clear_period_ms(&self) -> u32
Returns the value of clear_period_ms
, or the default value if clear_period_ms
is unset.
Trait Implementations§
Source§impl Clone for IncrementalStateConfig
impl Clone for IncrementalStateConfig
Source§fn clone(&self) -> IncrementalStateConfig
fn clone(&self) -> IncrementalStateConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IncrementalStateConfig
impl Debug for IncrementalStateConfig
Source§impl Default for IncrementalStateConfig
impl Default for IncrementalStateConfig
Source§impl Message for IncrementalStateConfig
impl Message for IncrementalStateConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.Source§impl PartialEq for IncrementalStateConfig
impl PartialEq for IncrementalStateConfig
impl StructuralPartialEq for IncrementalStateConfig
Auto Trait Implementations§
impl Freeze for IncrementalStateConfig
impl RefUnwindSafe for IncrementalStateConfig
impl Send for IncrementalStateConfig
impl Sync for IncrementalStateConfig
impl Unpin for IncrementalStateConfig
impl UnwindSafe for IncrementalStateConfig
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)