pub struct StageContext<'a> {
pub feed_id: FeedId,
pub frame: &'a FrameEnvelope,
pub artifacts: &'a PerceptionArtifacts,
pub view: &'a ViewSnapshot,
pub temporal: &'a dyn TemporalAccess,
pub metrics: &'a StageMetrics,
}Expand description
Context provided to every stage invocation.
Contains the current frame, accumulated artifacts from prior stages, read-only view and temporal snapshots, and stage-level metrics.
All references are valid for the duration of the process() call.
Fields§
§feed_id: FeedIdThe feed this frame belongs to.
frame: &'a FrameEnvelopeThe current video frame.
artifacts: &'a PerceptionArtifactsAccumulated outputs of all prior stages for this frame.
view: &'a ViewSnapshotView-state snapshot for this frame.
temporal: &'a dyn TemporalAccessRead-only temporal state snapshot.
Provides typed access to track histories, observation windows, and
view-epoch context. Implemented by nv_temporal::TemporalStoreSnapshot.
metrics: &'a StageMetricsPerformance metrics for this stage.
Auto Trait Implementations§
impl<'a> Freeze for StageContext<'a>
impl<'a> !RefUnwindSafe for StageContext<'a>
impl<'a> Send for StageContext<'a>
impl<'a> Sync for StageContext<'a>
impl<'a> Unpin for StageContext<'a>
impl<'a> UnsafeUnpin for StageContext<'a>
impl<'a> !UnwindSafe for StageContext<'a>
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