pub struct WriteBackProcessor { /* private fields */ }Available on crate feature
pipeline only.Expand description
Writes the current payload bytes back to disk. If a
write_back_extension metadata key is present, the bytes are written to
{original}{extension} and the original segment file is removed.
When dir is set, the file is written to that directory instead of
alongside the original.
Implementations§
Trait Implementations§
Source§impl Debug for WriteBackProcessor
impl Debug for WriteBackProcessor
Source§impl Default for WriteBackProcessor
impl Default for WriteBackProcessor
Source§fn default() -> WriteBackProcessor
fn default() -> WriteBackProcessor
Returns the “default value” for a type. Read more
Source§impl SegmentProcessor for WriteBackProcessor
impl SegmentProcessor for WriteBackProcessor
Source§fn process(
&mut self,
data: SegmentData,
) -> Pin<Box<dyn Future<Output = Result<SegmentData, ProcessError>> + Send + '_>>
fn process( &mut self, data: SegmentData, ) -> Pin<Box<dyn Future<Output = Result<SegmentData, ProcessError>> + Send + '_>>
Process a segment, transforming or consuming its data.
Returns the (possibly modified) data for the next processor,
or an error to skip this segment.
Source§fn initialize(
&mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + '_>>
fn initialize( &mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + '_>>
Initialize this processor on the worker’s Tokio runtime before the
pipeline begins processing segments. Read more
Source§fn finalize_dump(
&mut self,
completion: &DumpCompletion,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + '_>>
fn finalize_dump( &mut self, completion: &DumpCompletion, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + '_>>
Called once per finished dump in triggered mode (see
crate::dump), in pipeline order, so stages can flush any
per-dump state they accumulated. Return the S3 key of a manifest
written for this dump, or None; the last Some across the
pipeline lands on DumpReceipt::manifest_key. Read moreAuto Trait Implementations§
impl Freeze for WriteBackProcessor
impl RefUnwindSafe for WriteBackProcessor
impl Send for WriteBackProcessor
impl Sync for WriteBackProcessor
impl Unpin for WriteBackProcessor
impl UnsafeUnpin for WriteBackProcessor
impl UnwindSafe for WriteBackProcessor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<V, F> ValueFormatter<&V> for F
impl<V, F> ValueFormatter<&V> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &&V)
fn format_value(writer: impl ValueWriter, value: &&V)
Write
value to writerSource§impl<V, F> ValueFormatter<Arc<V>> for F
impl<V, F> ValueFormatter<Arc<V>> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Arc<V>)
fn format_value(writer: impl ValueWriter, value: &Arc<V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Box<V>> for F
impl<V, F> ValueFormatter<Box<V>> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Box<V>)
fn format_value(writer: impl ValueWriter, value: &Box<V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Cow<'_, V>> for F
impl<V, F> ValueFormatter<Cow<'_, V>> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Cow<'_, V>)
fn format_value(writer: impl ValueWriter, value: &Cow<'_, V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Option<V>> for Fwhere
F: ValueFormatter<V> + ?Sized,
impl<V, F> ValueFormatter<Option<V>> for Fwhere
F: ValueFormatter<V> + ?Sized,
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Option<V>)
fn format_value(writer: impl ValueWriter, value: &Option<V>)
Write
value to writer