pub struct ChunkEncoder { /* private fields */ }Expand description
Chunk stream encoder
Encodes messages into chunks for transmission.
Implementations§
Source§impl ChunkEncoder
impl ChunkEncoder
Sourcepub fn set_chunk_size(&mut self, size: u32)
pub fn set_chunk_size(&mut self, size: u32)
Set the chunk size (call before encoding to use larger chunks)
Sourcepub fn chunk_size(&self) -> u32
pub fn chunk_size(&self) -> u32
Get current chunk size
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChunkEncoder
impl RefUnwindSafe for ChunkEncoder
impl Send for ChunkEncoder
impl Sync for ChunkEncoder
impl Unpin for ChunkEncoder
impl UnwindSafe for ChunkEncoder
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