pub trait IntoCompressedWriter {
// Provided method
fn into_compressed_writer(
self,
compression_type: CompressionType,
) -> CompressedWriter
where Self: AsyncWrite + Unpin + Send + 'static + Sized { ... }
}Expand description
A trait for converting async writers into compressed writers.
This trait is automatically implemented for all types that implement [AsyncWrite].
Provided Methods§
Sourcefn into_compressed_writer(
self,
compression_type: CompressionType,
) -> CompressedWriter
fn into_compressed_writer( self, compression_type: CompressionType, ) -> CompressedWriter
Converts this writer into a CompressedWriter with the specified compression type.
§Arguments
self- The underlying writer to wrap with compressioncompression_type- The type of compression to apply