(&mut self, buf: &[u8])
| 215 | } |
| 216 | |
| 217 | fn write_all(&mut self, buf: &[u8]) -> std::io::Result<()> { |
| 218 | match self { |
| 219 | CompressionEncoder::Bzip2(encoder) => encoder.write_all(buf), |
| 220 | CompressionEncoder::Gzip(encoder) => encoder.write_all(buf), |
| 221 | CompressionEncoder::Xz(encoder) => encoder.write_all(buf), |
| 222 | CompressionEncoder::Zstd(encoder) => encoder.write_all(buf), |
| 223 | CompressionEncoder::None(file) => file.write_all(buf), |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | fn write_fmt(&mut self, fmt: std::fmt::Arguments<'_>) -> std::io::Result<()> { |
| 228 | match self { |
no outgoing calls