pub struct StreamingDecompressor { /* private fields */ }Expand description
Streaming decompression context for handling large blocks
Implementations§
Source§impl StreamingDecompressor
impl StreamingDecompressor
Sourcepub async fn decompress_streaming<R: Read + Send>(
&mut self,
reader: R,
expected_size: Option<usize>,
) -> Result<Vec<u8>>
pub async fn decompress_streaming<R: Read + Send>( &mut self, reader: R, expected_size: Option<usize>, ) -> Result<Vec<u8>>
Decompress data in chunks with memory limit enforcement
Sourcepub fn estimated_ratio(&self) -> f64
pub fn estimated_ratio(&self) -> f64
Get compression ratio estimate
Sourcepub fn select_optimal_algorithm(
data_sample: &[u8],
performance_priority: CompressionPriority,
) -> CompressionAlgorithm
pub fn select_optimal_algorithm( data_sample: &[u8], performance_priority: CompressionPriority, ) -> CompressionAlgorithm
Select optimal compression algorithm based on data characteristics
Auto Trait Implementations§
impl Freeze for StreamingDecompressor
impl RefUnwindSafe for StreamingDecompressor
impl Send for StreamingDecompressor
impl Sync for StreamingDecompressor
impl Unpin for StreamingDecompressor
impl UnsafeUnpin for StreamingDecompressor
impl UnwindSafe for StreamingDecompressor
Blanket Implementations§
impl<T> Allocation for T
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