pub struct Track {
pub id: TrackId,
pub class_id: u32,
pub state: TrackState,
pub current: TrackObservation,
pub metadata: TypedMetadata,
}Expand description
A live tracked object.
Produced by tracker stages. The current field holds the latest observation.
Historical observations are managed by the temporal store.
Fields§
§id: TrackIdUnique track identifier within this feed session.
class_id: u32Numeric class identifier (from the associated detections).
state: TrackStateCurrent lifecycle state.
current: TrackObservationMost recent observation.
metadata: TypedMetadataExtensible metadata (re-id features, custom scores, etc.).
Implementations§
Source§impl Track
impl Track
Sourcepub fn new(
id: TrackId,
class_id: u32,
state: TrackState,
current: TrackObservation,
) -> Self
pub fn new( id: TrackId, class_id: u32, state: TrackState, current: TrackObservation, ) -> Self
Create a new track with the given identity and current observation.
Metadata starts empty — use the builder or set metadata directly
to attach custom data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Track
impl !RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnsafeUnpin for Track
impl !UnwindSafe for Track
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