Enum barc::EncodeWrapper
source · pub enum EncodeWrapper<'a> {
Plain(&'a File),
Gzip(Box<GzEncoder<&'a File>>),
Brotli(Box<CompressorWriter<&'a File>>),
}
Expand description
Wrapper holding a potentially encoding Write
reference for the
underlying BARC File
reference.
Variants
Plain(&'a File)
Gzip(Box<GzEncoder<&'a File>>)
Brotli(Box<CompressorWriter<&'a File>>)
Implementations
sourceimpl<'a> EncodeWrapper<'a>
impl<'a> EncodeWrapper<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for EncodeWrapper<'a>
impl<'a> Send for EncodeWrapper<'a>
impl<'a> Sync for EncodeWrapper<'a>
impl<'a> Unpin for EncodeWrapper<'a>
impl<'a> !UnwindSafe for EncodeWrapper<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more