pub enum Flush {
None,
Sync,
Full,
Block,
Finish,
}Expand description
Flush modes for streaming compression.
Variants§
None
No flush - buffer data for optimal compression.
Sync
Sync flush - emit all pending output, remain compressible. Use for: periodic checkpoints, network packets.
Full
Full flush - emit all pending output, reset state. Use for: seeking support, error recovery.
Block
Block flush - complete current block only. Use for: block-level parallelism.
Finish
Finish - complete stream with trailer. Use for: end of stream.
Trait Implementations§
impl Copy for Flush
impl Eq for Flush
impl StructuralPartialEq for Flush
Auto Trait Implementations§
impl Freeze for Flush
impl RefUnwindSafe for Flush
impl Send for Flush
impl Sync for Flush
impl Unpin for Flush
impl UnwindSafe for Flush
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