Debian Codegraph @

src/base/write/compressed_writer.rs

raw symbols SCIP
1 // Copyright (c) 2021 Harry [Majored] [[email protected]]
2 // MIT License (https://github.com/Majored/rs-async-zip/blob/main/LICENSE)
3
4 use craterust-analyzer cargo async_zip 0.0.18 crate/::baserust-analyzer cargo async_zip 0.0.18 base/::writerust-analyzer cargo async_zip 0.0.18 base/write/::iorust-analyzer cargo async_zip 0.0.18 base/write/io/::offsetrust-analyzer cargo async_zip 0.0.18 base/write/io/offset/::AsyncOffsetWriterrust-analyzer cargo async_zip 0.0.18 base/write/io/offset/AsyncOffsetWriter#;
5 use craterust-analyzer cargo async_zip 0.0.18 crate/::specrust-analyzer cargo async_zip 0.0.18 spec/::Compressionrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#;
6
7 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#;
8 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/::Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#;
9 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::taskrust-analyzer cargo std https://github.com/rust-lang/rust/library/std task/::{Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#, Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#};
10
11 #[cfg(any(feature = "deflate", feature = "bzip2", feature = "zstd", feature = "lzma", feature = "xz"))]
12 use async_compressionrust-analyzer cargo async-compression 0.4.27 crate/::futuresrust-analyzer cargo async-compression 0.4.27 futures/::writerust-analyzer cargo async-compression 0.4.27 futures/write/;
13 use futures_literust-analyzer cargo futures-lite 2.1.0 crate/::iorust-analyzer cargo futures-lite 2.1.0 io/::AsyncWriterust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite#;
14
15 pub enum CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#<'b, W: AsyncWriterust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#> {
16 Storedrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Stored#(ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#<&'b mut AsyncOffsetWriterrust-analyzer cargo async_zip 0.0.18 base/write/io/offset/AsyncOffsetWriter#<W>>),
17 #[cfg(feature = "deflate")]
18 Deflaterust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Deflate#(writerust-analyzer cargo async-compression 0.4.27 futures/write/::DeflateEncoderrust-analyzer cargo async-compression 0.4.27 futures/write/DeflateEncoder#<ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#<&'b mut AsyncOffsetWriterrust-analyzer cargo async_zip 0.0.18 base/write/io/offset/AsyncOffsetWriter#<W>>>),
19 #[cfg(feature = "bzip2")]
20 Bzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Bz#(writerust-analyzer cargo async-compression 0.4.27 futures/write/::BzEncoderrust-analyzer cargo async-compression 0.4.27 futures/write/BzEncoder#<ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#<&'b mut AsyncOffsetWriterrust-analyzer cargo async_zip 0.0.18 base/write/io/offset/AsyncOffsetWriter#<W>>>),
21 #[cfg(feature = "lzma")]
22 Lzmarust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Lzma#(writerust-analyzer cargo async-compression 0.4.27 futures/write/::LzmaEncoderrust-analyzer cargo async-compression 0.4.27 futures/write/LzmaEncoder#<ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#<&'b mut AsyncOffsetWriterrust-analyzer cargo async_zip 0.0.18 base/write/io/offset/AsyncOffsetWriter#<W>>>),
23 #[cfg(feature = "zstd")]
24 Zstdrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Zstd#(writerust-analyzer cargo async-compression 0.4.27 futures/write/::ZstdEncoderrust-analyzer cargo async-compression 0.4.27 futures/write/ZstdEncoder#<ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#<&'b mut AsyncOffsetWriterrust-analyzer cargo async_zip 0.0.18 base/write/io/offset/AsyncOffsetWriter#<W>>>),
25 #[cfg(feature = "xz")]
26 Xzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Xz#(writerust-analyzer cargo async-compression 0.4.27 futures/write/::XzEncoderrust-analyzer cargo async-compression 0.4.27 futures/write/XzEncoder#<ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#<&'b mut AsyncOffsetWriterrust-analyzer cargo async_zip 0.0.18 base/write/io/offset/AsyncOffsetWriter#<W>>>),
27 }
28
29 impl<'b, W: AsyncWriterust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#> CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#<'b, W> {
30 pub fn from_rawrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`CompressedAsyncWriter<'b, W>`]from_raw().(writer: &'b mut AsyncOffsetWriterrust-analyzer cargo async_zip 0.0.18 base/write/io/offset/AsyncOffsetWriter#<W>, compression: Compressionrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#, precompressed: bool) -> Selfrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`CompressedAsyncWriter<'b, W>`] {
31 if precompressed {
32 return CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Storedrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Stored#(ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#(writer));
33 }
34
35 match compression {
36 Compressionrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#::Storedrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#Stored# => CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Storedrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Stored#(ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#(writer)),
37 #[cfg(feature = "deflate")]
38 Compressionrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#::Deflaterust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#Deflate# => {
39 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Deflaterust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Deflate#(writerust-analyzer cargo async-compression 0.4.27 futures/write/::DeflateEncoderrust-analyzer cargo async-compression 0.4.27 futures/write/DeflateEncoder#::newrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`DeflateEncoder<W>`]new().(ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#(writer)))
40 }
41 #[cfg(feature = "deflate64")]
42 Compressionrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#::Deflate64 => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("writing deflate64 is not supported"),
43 #[cfg(feature = "bzip2")]
44 Compressionrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#::Bzrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#Bz# => CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Bzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Bz#(writerust-analyzer cargo async-compression 0.4.27 futures/write/::BzEncoderrust-analyzer cargo async-compression 0.4.27 futures/write/BzEncoder#::newrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`BzEncoder<W>`]new().(ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#(writer))),
45 #[cfg(feature = "lzma")]
46 Compressionrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#::Lzmarust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#Lzma# => CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Lzmarust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Lzma#(writerust-analyzer cargo async-compression 0.4.27 futures/write/::LzmaEncoderrust-analyzer cargo async-compression 0.4.27 futures/write/LzmaEncoder#::newrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`LzmaEncoder<W>`]new().(ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#(writer))),
47 #[cfg(feature = "zstd")]
48 Compressionrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#::Zstdrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#Zstd# => CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Zstdrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Zstd#(writerust-analyzer cargo async-compression 0.4.27 futures/write/::ZstdEncoderrust-analyzer cargo async-compression 0.4.27 futures/write/ZstdEncoder#::newrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`ZstdEncoder<W>`]new().(ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#(writer))),
49 #[cfg(feature = "xz")]
50 Compressionrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#::Xzrust-analyzer cargo async_zip 0.0.18 spec/compression/Compression#Xz# => CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Xzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Xz#(writerust-analyzer cargo async-compression 0.4.27 futures/write/::XzEncoderrust-analyzer cargo async-compression 0.4.27 futures/write/XzEncoder#::newrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`XzEncoder<W>`]new().(ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#(writer))),
51 }
52 }
53
54 pub fn into_innerrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`CompressedAsyncWriter<'b, W>`]into_inner().(self) -> &'b mut AsyncOffsetWriterrust-analyzer cargo async_zip 0.0.18 base/write/io/offset/AsyncOffsetWriter#<W> {
55 match self {
56 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Storedrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Stored#(inner) => inner.into_innerrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`]into_inner().(),
57 #[cfg(feature = "deflate")]
58 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Deflaterust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Deflate#(inner) => inner.into_innerrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`DeflateEncoder<W>`]into_inner().().into_innerrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`]into_inner().(),
59 #[cfg(feature = "bzip2")]
60 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Bzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Bz#(inner) => inner.into_innerrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`BzEncoder<W>`]into_inner().().into_innerrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`]into_inner().(),
61 #[cfg(feature = "lzma")]
62 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Lzmarust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Lzma#(inner) => inner.into_innerrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`LzmaEncoder<W>`]into_inner().().into_innerrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`]into_inner().(),
63 #[cfg(feature = "zstd")]
64 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Zstdrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Zstd#(inner) => inner.into_innerrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`ZstdEncoder<W>`]into_inner().().into_innerrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`]into_inner().(),
65 #[cfg(feature = "xz")]
66 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Xzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Xz#(inner) => inner.into_innerrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`XzEncoder<W>`]into_inner().().into_innerrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`]into_inner().(),
67 }
68 }
69 }
70
71 impl<'b, W: AsyncWriterust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#> AsyncWriterust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite# for CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#<'b, W> {
72 fn poll_writerust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`CompressedAsyncWriter<'b, W>`][AsyncWrite]poll_write().(mut self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`CompressedAsyncWriter<'b, W>`][AsyncWrite]>, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#, buf: &[u8]) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<usize, Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#>> {
73 match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`][DerefMut]deref_mut().self {
74 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Storedrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Stored#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_writerust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`][AsyncWrite]poll_write().(cx, buf),
75 #[cfg(feature = "deflate")]
76 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Deflaterust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Deflate#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_writerust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`DeflateEncoder<W>`][AsyncWrite]poll_write().(cx, buf),
77 #[cfg(feature = "bzip2")]
78 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Bzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Bz#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_writerust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`BzEncoder<W>`][AsyncWrite]poll_write().(cx, buf),
79 #[cfg(feature = "lzma")]
80 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Lzmarust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Lzma#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_writerust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`LzmaEncoder<W>`][AsyncWrite]poll_write().(cx, buf),
81 #[cfg(feature = "zstd")]
82 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Zstdrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Zstd#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_writerust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`ZstdEncoder<W>`][AsyncWrite]poll_write().(cx, buf),
83 #[cfg(feature = "xz")]
84 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Xzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Xz#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_writerust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`XzEncoder<W>`][AsyncWrite]poll_write().(cx, buf),
85 }
86 }
87
88 fn poll_flushrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`CompressedAsyncWriter<'b, W>`][AsyncWrite]poll_flush().(mut self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`CompressedAsyncWriter<'b, W>`][AsyncWrite]>, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#>> {
89 match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`][DerefMut]deref_mut().self {
90 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Storedrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Stored#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_flushrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`][AsyncWrite]poll_flush().(cx),
91 #[cfg(feature = "deflate")]
92 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Deflaterust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Deflate#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_flushrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`DeflateEncoder<W>`][AsyncWrite]poll_flush().(cx),
93 #[cfg(feature = "bzip2")]
94 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Bzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Bz#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_flushrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`BzEncoder<W>`][AsyncWrite]poll_flush().(cx),
95 #[cfg(feature = "lzma")]
96 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Lzmarust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Lzma#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_flushrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`LzmaEncoder<W>`][AsyncWrite]poll_flush().(cx),
97 #[cfg(feature = "zstd")]
98 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Zstdrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Zstd#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_flushrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`ZstdEncoder<W>`][AsyncWrite]poll_flush().(cx),
99 #[cfg(feature = "xz")]
100 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Xzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Xz#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_flushrust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`XzEncoder<W>`][AsyncWrite]poll_flush().(cx),
101 }
102 }
103
104 fn poll_closerust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`CompressedAsyncWriter<'b, W>`][AsyncWrite]poll_close().(mut self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`CompressedAsyncWriter<'b, W>`][AsyncWrite]>, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#>> {
105 match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`][DerefMut]deref_mut().self {
106 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Storedrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Stored#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_closerust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`][AsyncWrite]poll_close().(cx),
107 #[cfg(feature = "deflate")]
108 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Deflaterust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Deflate#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_closerust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`DeflateEncoder<W>`][AsyncWrite]poll_close().(cx),
109 #[cfg(feature = "bzip2")]
110 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Bzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Bz#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_closerust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`BzEncoder<W>`][AsyncWrite]poll_close().(cx),
111 #[cfg(feature = "lzma")]
112 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Lzmarust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Lzma#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_closerust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`LzmaEncoder<W>`][AsyncWrite]poll_close().(cx),
113 #[cfg(feature = "zstd")]
114 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Zstdrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Zstd#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_closerust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`ZstdEncoder<W>`][AsyncWrite]poll_close().(cx),
115 #[cfg(feature = "xz")]
116 CompressedAsyncWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#::Xzrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/CompressedAsyncWriter#Xz#(ref mut inner) => Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(inner).poll_closerust-analyzer cargo async-compression 0.4.27 futures/write/impl#[`XzEncoder<W>`][AsyncWrite]poll_close().(cx),
117 }
118 }
119 }
120
121 pub struct ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#<W: AsyncWriterust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#>(W);
122
123 impl<W: AsyncWriterust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#> ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#<W> {
124 pub fn into_innerrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`]into_inner().(self) -> W {
125 self.0rust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#0.
126 }
127 }
128
129 impl<W: AsyncWriterust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#> AsyncWriterust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite# for ShutdownIgnoredWriterrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#<W> {
130 fn poll_writerust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`][AsyncWrite]poll_write().(mut self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`][AsyncWrite]>, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#, buf: &[u8]) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<usize, Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#>> {
131 Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(&mut self.0rust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#0.).poll_writerust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite#poll_write().(cx, buf)
132 }
133
134 fn poll_flushrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`][AsyncWrite]poll_flush().(mut self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`][AsyncWrite]>, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#>> {
135 Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(&mut self.0rust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/ShutdownIgnoredWriter#0.).poll_flushrust-analyzer cargo futures-io 0.3.25 if_std/AsyncWrite#poll_flush().(cx)
136 }
137
138 fn poll_closerust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`][AsyncWrite]poll_close().(self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async_zip 0.0.18 base/write/compressed_writer/impl#[`ShutdownIgnoredWriter<W>`][AsyncWrite]>, _: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#>> {
139 Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()))
140 }
141 }