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

Methods

impl<'a> EncodeWrapper<'a>
[src]

[src]

Return the Compression flag variant in use.

[src]

Return a Write reference for self.

[src]

Consume the wrapper, finishing any encoding and flushing the completed write.

Trait Implementations

Auto Trait Implementations

impl<'a> Send for EncodeWrapper<'a>

impl<'a> Sync for EncodeWrapper<'a>