pub struct PreparedBlock { /* private fields */ }Available on crate feature
compress only.Expand description
A solid block compressed away from any writer, ready to be appended by
ArchiveWriter::push_prepared_block.
This holds the entire compressed block in memory until it is pushed, where
ArchiveWriter::push_archive_entries streams into the output as it encodes. That is inherent
to preparing a block off-thread, and it is what a caller sizing its batches is signing up for:
peak memory is roughly the compressed size of every block in flight at once.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreparedBlock
impl RefUnwindSafe for PreparedBlock
impl Send for PreparedBlock
impl Sync for PreparedBlock
impl Unpin for PreparedBlock
impl UnsafeUnpin for PreparedBlock
impl UnwindSafe for PreparedBlock
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