pub struct GzipCompressor;Available on crate feature
pipeline only.Expand description
Gzips the segment payload in-memory. Sets the content_encoding and
write_back_extension metadata keys so downstream stages know the
payload is gzipped. Already-gzipped segments (detected by magic bytes)
pass through unchanged.
Trait Implementations§
Source§impl Debug for GzipCompressor
impl Debug for GzipCompressor
Source§impl Default for GzipCompressor
impl Default for GzipCompressor
Source§fn default() -> GzipCompressor
fn default() -> GzipCompressor
Returns the “default value” for a type. Read more
Source§impl SegmentProcessor for GzipCompressor
impl SegmentProcessor for GzipCompressor
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 GzipCompressor
impl RefUnwindSafe for GzipCompressor
impl Send for GzipCompressor
impl Sync for GzipCompressor
impl Unpin for GzipCompressor
impl UnsafeUnpin for GzipCompressor
impl UnwindSafe for GzipCompressor
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