pub struct BlockWriter { /* private fields */ }Expand description
Builder for a single block’s payload, with framing support.
Implementations§
Source§impl BlockWriter
impl BlockWriter
Sourcepub fn set_compression(&mut self, comp: CompressionType)
pub fn set_compression(&mut self, comp: CompressionType)
Set the compression type for this block.
Sourcepub fn payload_mut(&mut self) -> &mut Vec<u8> ⓘ
pub fn payload_mut(&mut self) -> &mut Vec<u8> ⓘ
Get a mutable reference to the payload buffer.
Sourcepub fn payload_len(&self) -> usize
pub fn payload_len(&self) -> usize
Get the current payload size.
Auto Trait Implementations§
impl Freeze for BlockWriter
impl RefUnwindSafe for BlockWriter
impl Send for BlockWriter
impl Sync for BlockWriter
impl Unpin for BlockWriter
impl UnsafeUnpin for BlockWriter
impl UnwindSafe for BlockWriter
Blanket Implementations§
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