EventExt

Trait EventExt 

Source
pub trait EventExt
where Self: Sized,
{ // Provided method fn with_metadata<M>(self, metadata: M) -> EventWithMetadata<Self, M> { ... } }
Expand description

Extension methods for events.

Provided Methods§

Source

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.

Implementors§

Source§

impl<E> EventExt for E