Struct dataflow::logging::BatchLogger[][src]

pub struct BatchLogger<T, E, P> where
    P: EventPusher<Timestamp, (Duration, E, T)>, 
{ time_ms: Timestamp, event_pusher: P, _phantom: PhantomData<(E, T)>, granularity_ms: u64, buffer: Vec<(Duration, E, T)>, }
Expand description

Logs events as a timely stream, with progress statements.

Fields

time_ms: Timestamp

Time in milliseconds of the current expressed capability.

event_pusher: P_phantom: PhantomData<(E, T)>granularity_ms: u64

Each time is advanced to the strictly next millisecond that is a multiple of this granularity. This means we should be able to perform the same action on timestamp capabilities, and only flush buffers when this timestamp advances.

buffer: Vec<(Duration, E, T)>

A stash for data that does not yet need to be sent.

Implementations

Batch size in bytes for batches

Calculate the default buffer size based on (Duration, E, T) tuples.

Creates a new batch logger.

Publishes a batch of logged events and advances the capability.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more