pub struct AdaptiveCompressor { /* private fields */ }Expand description
Adaptive compressor with intelligent algorithm selection
Implementations§
Source§impl AdaptiveCompressor
impl AdaptiveCompressor
Sourcepub fn with_cache_size(cache_size: usize) -> Self
pub fn with_cache_size(cache_size: usize) -> Self
Create with specific cache size
Sourcepub fn select_strategy(&self, data: &[u8]) -> CompressionStrategy
pub fn select_strategy(&self, data: &[u8]) -> CompressionStrategy
Select compression strategy for data
Sourcepub fn stats(&self) -> PerformanceStats
pub fn stats(&self) -> PerformanceStats
Get performance statistics
Sourcepub fn reset_stats(&self)
pub fn reset_stats(&self)
Reset statistics
Trait Implementations§
Source§impl Compressor for AdaptiveCompressor
impl Compressor for AdaptiveCompressor
Source§impl Debug for AdaptiveCompressor
impl Debug for AdaptiveCompressor
Auto Trait Implementations§
impl Forget for AdaptiveCompressor
impl Freeze for AdaptiveCompressor
impl RefUnwindSafe for AdaptiveCompressor
impl Send for AdaptiveCompressor
impl Sync for AdaptiveCompressor
impl Unpin for AdaptiveCompressor
impl UnsafeUnpin for AdaptiveCompressor
impl UnwindSafe for AdaptiveCompressor
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