pub struct TraceParams {
pub action: TraceAction,
pub interval_ms: Option<u64>,
pub max_frames: Option<usize>,
pub with_events: Option<bool>,
pub limit: Option<usize>,
pub webview_label: Option<String>,
}Expand description
Parameters for the compound trace tool (screencast / visual timeline).
Fields§
§action: TraceActionAction: start, stop, status, frames.
interval_ms: Option<u64>Capture interval in milliseconds (for start). Default 500, min 50.
max_frames: Option<usize>Maximum frames to retain in the ring buffer (for start). Default 60, max 600.
with_events: Option<bool>If true (for start), also start the event recorder so the trace bundles the IPC/DOM/console event timeline alongside the screencast.
limit: Option<usize>Maximum frames to return (for frames). 0 or omitted returns all buffered.
webview_label: Option<String>Target webview label to capture.
Trait Implementations§
Source§impl Debug for TraceParams
impl Debug for TraceParams
Source§impl<'de> Deserialize<'de> for TraceParams
impl<'de> Deserialize<'de> for TraceParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for TraceParams
impl JsonSchema for TraceParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for TraceParams
impl RefUnwindSafe for TraceParams
impl Send for TraceParams
impl Sync for TraceParams
impl Unpin for TraceParams
impl UnsafeUnpin for TraceParams
impl UnwindSafe for TraceParams
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