pub trait IdentityExtractor: Send + Sync {
// Required method
fn extract(&self, message: &dyn Any) -> Option<UUID4>;
}Expand description
Extracts the logical message identity (event id, command id) from a captured message.
The adapter uses the identity to capture a message exactly once when dispatch pushes it through multiple tap-visible boundaries. Types without an extractor are captured per dispatch, which is correct only for types that reach the tap on a single boundary.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".