pub struct StartParams {
pub categories: Option<String>,
pub options: Option<String>,
pub buffer_usage_reporting_interval: Option<f64>,
pub transfer_mode: Option<TransferMode>,
pub stream_format: Option<StreamFormat>,
pub stream_compression: Option<StreamCompression>,
pub trace_config: Option<TraceConfig>,
pub perfetto_config: Option<String>,
pub tracing_backend: Option<TracingBackend>,
}Expand description
Parameters for Tracing.start.
Fields§
§categories: Option<String>Category/tag filter as a string.
options: Option<String>Tracing options.
buffer_usage_reporting_interval: Option<f64>Buffer size in kilobytes.
transfer_mode: Option<TransferMode>Transfer mode.
stream_format: Option<StreamFormat>Stream format.
stream_compression: Option<StreamCompression>Stream compression.
trace_config: Option<TraceConfig>Trace config for Chromium’s tracing backend.
perfetto_config: Option<String>Base64-encoded serialized perfetto.protos.TraceConfig.
tracing_backend: Option<TracingBackend>Backend type.
Implementations§
Source§impl StartParams
impl StartParams
Sourcepub fn categories(self, categories: impl Into<String>) -> Self
pub fn categories(self, categories: impl Into<String>) -> Self
Set the categories filter.
Sourcepub fn transfer_mode(self, mode: TransferMode) -> Self
pub fn transfer_mode(self, mode: TransferMode) -> Self
Set the transfer mode.
Sourcepub fn stream_format(self, format: StreamFormat) -> Self
pub fn stream_format(self, format: StreamFormat) -> Self
Set the stream format.
Sourcepub fn trace_config(self, config: TraceConfig) -> Self
pub fn trace_config(self, config: TraceConfig) -> Self
Set the trace config.
Trait Implementations§
Source§impl Clone for StartParams
impl Clone for StartParams
Source§fn clone(&self) -> StartParams
fn clone(&self) -> StartParams
Returns a duplicate 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 Debug for StartParams
impl Debug for StartParams
Source§impl Default for StartParams
impl Default for StartParams
Source§fn default() -> StartParams
fn default() -> StartParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StartParams
impl RefUnwindSafe for StartParams
impl Send for StartParams
impl Sync for StartParams
impl Unpin for StartParams
impl UnwindSafe for StartParams
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