enum EncodedBuffer {
Raw(Buffer),
Compressed(Vec<u8>),
}Expand description
A single buffer segment ready to be written to the output stream.
For the uncompressed path the original Arc-backed [Buffer] is stored
directly (zero copy). For the compressed path the compressed bytes are
owned by a scratch Vec<u8>.
Variants§
Raw(Buffer)
Uncompressed: Arc-backed reference to the original array buffer.
Compressed(Vec<u8>)
Compressed: owned scratch bytes produced by the codec.
Implementations§
Auto Trait Implementations§
impl Freeze for EncodedBuffer
impl RefUnwindSafe for EncodedBuffer
impl Send for EncodedBuffer
impl Sync for EncodedBuffer
impl Unpin for EncodedBuffer
impl UnsafeUnpin for EncodedBuffer
impl UnwindSafe for EncodedBuffer
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more