pub trait EventContainer {
// Required method
fn event_count(&self) -> u64;
}Expand description
A container that holds events.
This trait is used as an incredibly generic way to expose the number of events within a “container”, which we
loosely define to be anything that is holding events in some form. This is primarily used to track the number of
events dropped by RetryQueue (and PersistedQueue) when entries have to be dropped due to size limits.
Required Methods§
Sourcefn event_count(&self) -> u64
fn event_count(&self) -> u64
Returns the number of events represented by this container.