pub struct ChunkDecoder { /* private fields */ }Expand description
Chunk stream decoder
Handles chunk demultiplexing and message reassembly.
Implementations§
Source§impl ChunkDecoder
impl ChunkDecoder
Sourcepub fn set_chunk_size(&mut self, size: u32)
pub fn set_chunk_size(&mut self, size: u32)
Set the chunk size (called when receiving SetChunkSize message)
Sourcepub fn chunk_size(&self) -> u32
pub fn chunk_size(&self) -> u32
Get current chunk size
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChunkDecoder
impl RefUnwindSafe for ChunkDecoder
impl Send for ChunkDecoder
impl Sync for ChunkDecoder
impl Unpin for ChunkDecoder
impl UnwindSafe for ChunkDecoder
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