Enum body_image::barc::EncodeWrapper
[−]
[src]
pub enum EncodeWrapper<'a> { Plain(&'a File), Gzip(GzEncoder<&'a File>), Brotli(Box<CompressorWriter<&'a File>>), }
Wrapper holding a potentially encoding Write
reference for the
underlying BARC File
reference.
Variants
Plain(&'a File)
Gzip(GzEncoder<&'a File>)
Brotli(Box<CompressorWriter<&'a File>>)
Methods
impl<'a> EncodeWrapper<'a>
[src]
pub fn mode(&self) -> Compression
[src]
Return the Compression
flag variant in use.
pub fn as_write(&mut self) -> &mut Write
[src]
Return a Write
reference for self.
pub fn finish(self) -> Result<(), BarcError>
[src]
Consume the wrapper, finishing any encoding and flushing the completed write.