pub struct TrajectoryRecorder { /* private fields */ }Expand description
Plugin that filters AgentEvents into TrajectoryRecords and
forwards to a TrajectorySink. Stamps each record with a
monotonic per-run sequence number and resolves the run id from
AgentEvent::RunIdentified.
Register as an EventObserver on the parent run; child runs that
reuse the same recorder share the sequence space and stay
distinguishable by run_id/parent_run_id. For a strict
per-run sequence reset, register a fresh recorder per spawn.
Implementations§
Source§impl TrajectoryRecorder
impl TrajectoryRecorder
pub fn new(sink: Arc<dyn TrajectorySink>) -> Self
Trait Implementations§
Source§impl EventObserver for TrajectoryRecorder
impl EventObserver for TrajectoryRecorder
Source§impl Plugin for TrajectoryRecorder
impl Plugin for TrajectoryRecorder
Source§fn capabilities(&self) -> PluginCapabilities
fn capabilities(&self) -> PluginCapabilities
Which capabilities this plugin implements. Default: none — meaning
pure observation by inheriting from
EventObserver. Override and
return the relevant set when adding behavior.Auto Trait Implementations§
impl !Freeze for TrajectoryRecorder
impl !RefUnwindSafe for TrajectoryRecorder
impl Send for TrajectoryRecorder
impl Sync for TrajectoryRecorder
impl Unpin for TrajectoryRecorder
impl UnsafeUnpin for TrajectoryRecorder
impl !UnwindSafe for TrajectoryRecorder
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