pub struct TryMap<G, N> { /* private fields */ }Expand description
try_map: fallible transform with a per-stage ErrorPolicy.
Skip drops the record (releasing its ack share) and counts it;
Fail records a fatal error — the batch aborts and the pipeline stops.
Trait Implementations§
Source§impl<G, N: StageLifecycle> StageLifecycle for TryMap<G, N>
impl<G, N: StageLifecycle> StageLifecycle for TryMap<G, N>
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<G, N> Freeze for TryMap<G, N>
impl<G, N> !RefUnwindSafe for TryMap<G, N>
impl<G, N> Send for TryMap<G, N>
impl<G, N> Sync for TryMap<G, N>
impl<G, N> Unpin for TryMap<G, N>
impl<G, N> UnsafeUnpin for TryMap<G, N>where
G: UnsafeUnpin,
N: UnsafeUnpin,
impl<G, N> !UnwindSafe for TryMap<G, N>
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