pub struct SplitTerminal<SrcF: RecFamily, G> { /* private fields */ }Expand description
The chain’s split terminal. Runs the route closure over each record and aggregates the branches’ lifecycle (relieve/flush/fatal). See the module docs.
Trait Implementations§
Source§impl<SrcF: RecFamily, G> Debug for SplitTerminal<SrcF, G>
impl<SrcF: RecFamily, G> Debug for SplitTerminal<SrcF, G>
Source§impl<SrcF: RecFamily, G> StageLifecycle for SplitTerminal<SrcF, G>
impl<SrcF: RecFamily, G> StageLifecycle for SplitTerminal<SrcF, G>
Source§fn on_batch_end(&mut self, elapsed: Duration)
fn on_batch_end(&mut self, elapsed: Duration)
Flush per-batch metric accumulators.
elapsed is the chain-level
batch duration: per-stage attribution inside one inlined loop is
not measurable without per-record clocks, so every stage reports
the chain figure, keeping the histograms comparable.Source§fn take_fatal(&mut self) -> Option<FatalError>
fn take_fatal(&mut self) -> Option<FatalError>
Take the first fatal error recorded by any stage.
Source§fn relieve(&mut self) -> Flow
fn relieve(&mut self) -> Flow
Let the terminal stage drain parked output.
Flow::Blocked means
it is still backed up and the chain must not accept new payloads.Source§fn flush_terminal(&mut self) -> Flow
fn flush_terminal(&mut self) -> Flow
Seal and hand off all terminal buffers, partial chunks included.
Flow::Blocked means not everything could be sent; retry later.Auto Trait Implementations§
impl<SrcF, G> !RefUnwindSafe for SplitTerminal<SrcF, G>
impl<SrcF, G> !Sync for SplitTerminal<SrcF, G>
impl<SrcF, G> !UnwindSafe for SplitTerminal<SrcF, G>
impl<SrcF, G> Freeze for SplitTerminal<SrcF, G>where
G: Freeze,
impl<SrcF, G> Send for SplitTerminal<SrcF, G>where
G: Send,
impl<SrcF, G> Unpin for SplitTerminal<SrcF, G>where
G: Unpin,
impl<SrcF, G> UnsafeUnpin for SplitTerminal<SrcF, G>where
G: UnsafeUnpin,
Blanket Implementations§
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