pub struct Recorder { /* private fields */ }Expand description
Legacy append-only JSONL writer.
This compatibility type is intentionally non-gating: record/flush/lock failures are discarded, events have no run envelope or correlation IDs, and existing files are appended rather than protected from overwrite.
§Examples
use ailloli_ui_bench::Recorder;
let recorder = Recorder::new("artifacts/bench/legacy.jsonl")?;
assert!(recorder.path().ends_with("legacy.jsonl"));Implementations§
Source§impl Recorder
impl Recorder
Sourcepub fn record(&self, event: &Event)
pub fn record(&self, event: &Event)
Appends one legacy event. Errors remain non-gating for compatibility.
A successful event is immediately newline-terminated and flushed.
§Examples
use ailloli_ui_bench::{Event, Recorder};
let recorder = Recorder::new("legacy.jsonl")?;
recorder.record(&Event::Marker { ts_ms: 1, name: "ready".into() });Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Recorder
impl RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnwindSafe for Recorder
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