pub struct Buffered<R, S> { /* private fields */ }Expand description
In-memory buffering tier: holds records and pushes them downstream when
its FlushPolicy fires.
The policy is checked on each ingest (collector ticks are frequent
compared to flush windows, so no extra timer task is needed);
flush force-drains. On downstream failure the records
are kept and retried at the next firing — a transient outage of the
terminal sink does not lose data held in this tier.
Requires R: Clone so retained records survive a failed downstream
ingest.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<R, S> Freeze for Buffered<R, S>where
S: Freeze,
impl<R, S> RefUnwindSafe for Buffered<R, S>where
S: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, S> Send for Buffered<R, S>
impl<R, S> Sync for Buffered<R, S>
impl<R, S> Unpin for Buffered<R, S>
impl<R, S> UnsafeUnpin for Buffered<R, S>where
S: UnsafeUnpin,
impl<R, S> UnwindSafe for Buffered<R, S>where
S: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more