pub struct ResultChunker { /* private fields */ }Expand description
Chunker for large results
Implementations§
Source§impl ResultChunker
impl ResultChunker
Sourcepub fn chunk(&self, data: &[u8]) -> Vec<ResultChunk>
pub fn chunk(&self, data: &[u8]) -> Vec<ResultChunk>
Split data into chunks
Sourcepub fn reassemble(&self, chunks: &[ResultChunk]) -> Result<Vec<u8>>
pub fn reassemble(&self, chunks: &[ResultChunk]) -> Result<Vec<u8>>
Reassemble chunks into original data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResultChunker
impl RefUnwindSafe for ResultChunker
impl Send for ResultChunker
impl Sync for ResultChunker
impl Unpin for ResultChunker
impl UnwindSafe for ResultChunker
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