pub struct TrajectoryBuilder { /* private fields */ }Expand description
Per-walker accumulator that the executor pushes steps into and
converts to a FlowTrajectory at terminate/error time. Not a
FlowLogSink — the executor explicitly emits one event from the
finalized trajectory.
Implementations§
Source§impl TrajectoryBuilder
impl TrajectoryBuilder
pub fn new(conn: ConnId, entry: NodeId, started_at_ms: u64) -> Self
Sourcepub fn placeholder(conn: ConnId, started_at_ms: u64) -> Self
pub fn placeholder(conn: ConnId, started_at_ms: u64) -> Self
Detached builder used as a transient placeholder when the
owning FlowCtx needs to swap its
trajectory out via std::mem::replace (finalize consumes by
value, so the FlowCtx must hold something in the slot
during the call).
The resulting builder records no entry node and is discarded immediately after the swap — callers must not push steps to it or finalize it as if it represented a real trace.
pub fn push(&mut self, step: TrajectoryStep)
pub fn finalize( self, outcome: TrajectoryOutcome, finished_at_ms: u64, ) -> FlowTrajectory
Trait Implementations§
Auto 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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