pub struct RenderTraceConfig {
pub enabled: bool,
pub output_path: PathBuf,
pub run_id: Option<String>,
pub seed: Option<u64>,
pub test_module: Option<String>,
pub flush_on_write: bool,
pub include_start_ts_ms: bool,
}Expand description
Configuration for render-trace recording.
Fields§
§enabled: boolEnable render-trace recording.
output_path: PathBufOutput JSONL path (trace.jsonl).
run_id: Option<String>Optional run identifier override.
seed: Option<u64>Optional deterministic seed (or null).
test_module: Option<String>Optional test module label (or null).
flush_on_write: boolFlush after every JSONL line.
include_start_ts_ms: boolInclude start_ts_ms in header (non-deterministic if true).
Implementations§
Source§impl RenderTraceConfig
impl RenderTraceConfig
Sourcepub fn enabled_file(path: impl Into<PathBuf>) -> Self
pub fn enabled_file(path: impl Into<PathBuf>) -> Self
Enable render-trace recording to the given path.
Sourcepub fn with_run_id(self, run_id: impl Into<String>) -> Self
pub fn with_run_id(self, run_id: impl Into<String>) -> Self
Set a run identifier.
Sourcepub fn with_test_module(self, test_module: impl Into<String>) -> Self
pub fn with_test_module(self, test_module: impl Into<String>) -> Self
Set a test module label.
Sourcepub fn with_flush_on_write(self, enabled: bool) -> Self
pub fn with_flush_on_write(self, enabled: bool) -> Self
Toggle flush-on-write.
Sourcepub fn with_start_ts_ms(self, enabled: bool) -> Self
pub fn with_start_ts_ms(self, enabled: bool) -> Self
Include start_ts_ms in header (non-deterministic).
Trait Implementations§
Source§impl Clone for RenderTraceConfig
impl Clone for RenderTraceConfig
Source§fn clone(&self) -> RenderTraceConfig
fn clone(&self) -> RenderTraceConfig
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 RenderTraceConfig
impl Debug for RenderTraceConfig
Auto Trait Implementations§
impl Freeze for RenderTraceConfig
impl RefUnwindSafe for RenderTraceConfig
impl Send for RenderTraceConfig
impl Sync for RenderTraceConfig
impl Unpin for RenderTraceConfig
impl UnsafeUnpin for RenderTraceConfig
impl UnwindSafe for RenderTraceConfig
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