Module array

Expand description

This module contains the definitions and wrapper types for handling arrays of type Event, in the various forms they may appear.

Structs§

EventArrayBuffer
Intermediate buffer for conversion of a sequence of individual Events into a sequence of EventArrays by coalescing contiguous events of the same type into one array. This is used by events_into_array.
IntoEventArraysIter
Iterator type implementing into_arrays

Enums§

EventArray
An array of one of the Event variants exclusively.
EventArrayIntoIter
The iterator type for EventArray::into_events.
EventArrayIter
The iterator type for EventArray::iter_events.
EventArrayIterMut
The iterator type for EventArray::iter_events_mut.

Traits§

EventContainer
The core trait to abstract over any type that may work as an array of events. This is effectively the same as the standard IntoIterator<Item = Event> implementations, but that would conflict with the base implementation for the type aliases below.

Functions§

events_into_arrays
Convert the iterator over individual Events into an iterator over coalesced EventArrays.
into_event_stream
Turn a container into a futures stream over the contained Event type. This would ideally be implemented as a default method on trait EventContainer, but the required feature (associated type defaults) is still unstable. See https://github.com/rust-lang/rust/issues/29661

Type Aliases§

LogArray
The type alias for an array of LogEvent elements.
MetricArray
The type alias for an array of Metric elements.
TraceArray
The type alias for an array of TraceEvent elements.