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.
Trait Implementations
Auto Trait Implementations
impl<T, E, P> RefUnwindSafe for BatchLogger<T, E, P> where
E: RefUnwindSafe,
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E, P> Send for BatchLogger<T, E, P> where
E: Send,
P: Send,
T: Send,
impl<T, E, P> Sync for BatchLogger<T, E, P> where
E: Sync,
P: Sync,
T: Sync,
impl<T, E, P> Unpin for BatchLogger<T, E, P> where
E: Unpin,
P: Unpin,
T: Unpin,
impl<T, E, P> UnwindSafe for BatchLogger<T, E, P> where
E: UnwindSafe,
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
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