ln_gateway::events

Function filter_events

Source
pub(crate) fn filter_events<'a, I>(
    all_events: I,
    event_kind: EventKind,
    module_kind: ModuleKind,
) -> impl Iterator<Item = &'a PersistedLogEntry> + 'a
where I: IntoIterator<Item = &'a PersistedLogEntry> + 'a,
Expand description

Filters the given PersistedLogEntry slice by the EventKind and ModuleKind.