pub struct ZipWriter<I, S> { /* private fields */ }Expand description
High-level streaming ZIP archive builder.
Wraps a stream of ZipEntry items and produces a
Stream<Item = Result<Bytes, E>> of ZIP-encoded bytes. Files are
stored (uncompressed); CRC-32 checksums and all ZIP bookkeeping are
handled automatically.
For compressed output or custom I/O, use ZipArchive directly.
See the crate-level docs for a full example.
Implementations§
Trait Implementations§
Source§impl<I, S, E> Stream for ZipWriter<I, S>
impl<I, S, E> Stream for ZipWriter<I, S>
impl<'__pin, I, S> Unpin for ZipWriter<I, S>where
PinnedFieldsOf<__Origin<'__pin, I, S>>: Unpin,
Auto Trait Implementations§
impl<I, S> Freeze for ZipWriter<I, S>
impl<I, S> RefUnwindSafe for ZipWriter<I, S>where
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<I, S> Send for ZipWriter<I, S>
impl<I, S> Sync for ZipWriter<I, S>
impl<I, S> UnsafeUnpin for ZipWriter<I, S>where
I: UnsafeUnpin,
S: UnsafeUnpin,
impl<I, S> UnwindSafe for ZipWriter<I, S>where
I: UnwindSafe,
S: UnwindSafe,
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