pub trait EventExtwhere
Self: Sized,{
// Provided method
fn with_metadata<M>(self, metadata: M) -> EventWithMetadata<Self, M> { ... }
}Expand description
Extension methods for events.
Provided Methods§
Sourcefn with_metadata<M>(self, metadata: M) -> EventWithMetadata<Self, M>
fn with_metadata<M>(self, metadata: M) -> EventWithMetadata<Self, M>
Convert a plain event into an EventWithMetadata.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.