pub struct LabConfig {
pub prefix: String,
pub scenario_name: String,
pub seed: u64,
pub viewport_width: u16,
pub viewport_height: u16,
pub time_step_ms: u64,
pub log_frame_checksums: bool,
}Expand description
Configuration for a FrankenLab scenario run.
Fields§
§prefix: StringPrefix for JSONL logger and run IDs.
scenario_name: StringScenario name (used in tracing spans and JSONL).
seed: u64Deterministic seed.
viewport_width: u16Viewport width for frame captures.
viewport_height: u16Viewport height for frame captures.
time_step_ms: u64Time step in milliseconds for the deterministic clock.
log_frame_checksums: boolWhether to log each captured frame’s checksum to JSONL.
Implementations§
Source§impl LabConfig
impl LabConfig
Sourcepub fn new(prefix: &str, scenario_name: &str, seed: u64) -> Self
pub fn new(prefix: &str, scenario_name: &str, seed: u64) -> Self
Create a new configuration with defaults.
Defaults: 80x24 viewport, 16ms time step, frame checksum logging on.
Sourcepub fn viewport(self, width: u16, height: u16) -> Self
pub fn viewport(self, width: u16, height: u16) -> Self
Set the viewport dimensions for frame captures.
Sourcepub fn time_step_ms(self, ms: u64) -> Self
pub fn time_step_ms(self, ms: u64) -> Self
Set the deterministic time step in milliseconds.
Sourcepub fn log_frame_checksums(self, enabled: bool) -> Self
pub fn log_frame_checksums(self, enabled: bool) -> Self
Enable or disable JSONL logging of frame checksums.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LabConfig
impl RefUnwindSafe for LabConfig
impl Send for LabConfig
impl Sync for LabConfig
impl Unpin for LabConfig
impl UnsafeUnpin for LabConfig
impl UnwindSafe for LabConfig
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