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]
impl<'a> EncodeWrapper<'a>
pub fn mode(&self) -> Compression
[src]
pub fn mode(&self) -> Compression
Return the Compression
flag variant in use.
pub fn as_write(&mut self) -> &mut Write
[src]
pub fn as_write(&mut self) -> &mut Write
Return a Write
reference for self.
pub fn finish(self) -> Result<(), BarcError>
[src]
pub fn finish(self) -> Result<(), BarcError>
Consume the wrapper, finishing any encoding and flushing the completed write.
Auto Trait Implementations
impl<'a> Send for EncodeWrapper<'a>
impl<'a> Send for EncodeWrapper<'a>
impl<'a> Sync for EncodeWrapper<'a>
impl<'a> Sync for EncodeWrapper<'a>