[][src]Function eventmill::event::wrap_events_with_metadata

pub fn wrap_events_with_metadata<'a, E, A>(
    current_sequence: &'a mut Sequence,
    metadata: &'a Metadata,
    events: impl IntoIterator<Item = NewEvent<E, A>> + 'a
) -> impl Iterator<Item = DomainEvent<E, A>> + 'a where
    A: WithAggregateId