Skip to main content

Module metadata

Module metadata 

Source
Expand description

Type-map metadata container.

TypedMetadata stores arbitrary Send + Sync + 'static values keyed by their concrete TypeId. At most one value per concrete type. This is the standard “type-map” or “AnyMap” pattern.

Used on FrameEnvelope, Detection, Track, OutputEnvelope, and PerceptionArtifacts to carry extensible domain-specific data without modifying core types.

§Cloning cost

TypedMetadata::clone() deep-clones every stored value. Metadata bags are typically small (2–5 entries) with lightweight types. If a stage stores large data (e.g., a full feature map), wrap it in Arc<T> so that cloning the bag clones only the Arc, not the data.

Structs§

TypedMetadata
Typed metadata bag — stores arbitrary Send + Sync + 'static values keyed by their concrete type.