pub struct TrajectoryBuilder { /* private fields */ }Expand description
Incremental builder used by the harness’s unsigned-workflow path.
Steps receive sequential ids automatically; aggregate metrics accumulate as steps are appended (checked arithmetic — a corrupt aggregate must fail loudly, not wrap).
Implementations§
Source§impl TrajectoryBuilder
impl TrajectoryBuilder
Sourcepub fn push_step(&mut self, step: Step) -> Result<(), CoreError>
pub fn push_step(&mut self, step: Step) -> Result<(), CoreError>
Append a step. The builder overwrites step_id with the next
sequential id (callers cannot corrupt ordering) and accumulates
aggregate metrics.
Sourcepub fn finish(self) -> Trajectory
pub fn finish(self) -> Trajectory
Finalize into a v1.7 trajectory with aggregate metrics.
Trait Implementations§
Source§impl Clone for TrajectoryBuilder
impl Clone for TrajectoryBuilder
Source§fn clone(&self) -> TrajectoryBuilder
fn clone(&self) -> TrajectoryBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TrajectoryBuilder
impl RefUnwindSafe for TrajectoryBuilder
impl Send for TrajectoryBuilder
impl Sync for TrajectoryBuilder
impl Unpin for TrajectoryBuilder
impl UnsafeUnpin for TrajectoryBuilder
impl UnwindSafe for TrajectoryBuilder
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