pub struct ContainerChunker<Output> { /* private fields */ }
Expand description
Chunk a stream of containers into chains of vectors.
Trait Implementations§
Source§impl<Output> ContainerBuilder for ContainerChunker<Output>
impl<Output> ContainerBuilder for ContainerChunker<Output>
Source§fn extract(&mut self) -> Option<&mut Self::Container>
fn extract(&mut self) -> Option<&mut Self::Container>
Extract assembled containers, potentially leaving unfinished data behind. Can
be called repeatedly, for example while the caller can send data. Read more
Source§fn finish(&mut self) -> Option<&mut Self::Container>
fn finish(&mut self) -> Option<&mut Self::Container>
Extract assembled containers and any unfinished data. Should
be called repeatedly until it returns
None
.Source§impl<Output> Default for ContainerChunker<Output>where
Output: Default,
impl<Output> Default for ContainerChunker<Output>where
Output: Default,
Source§impl<'a, Input, Output> PushInto<&'a mut Input> for ContainerChunker<Output>
impl<'a, Input, Output> PushInto<&'a mut Input> for ContainerChunker<Output>
Source§fn push_into(&mut self, container: &'a mut Input)
fn push_into(&mut self, container: &'a mut Input)
Push item into self.
Auto Trait Implementations§
impl<Output> Freeze for ContainerChunker<Output>where
Output: Freeze,
impl<Output> RefUnwindSafe for ContainerChunker<Output>where
Output: RefUnwindSafe,
impl<Output> Send for ContainerChunker<Output>where
Output: Send,
impl<Output> Sync for ContainerChunker<Output>where
Output: Sync,
impl<Output> Unpin for ContainerChunker<Output>where
Output: Unpin,
impl<Output> UnwindSafe for ContainerChunker<Output>where
Output: UnwindSafe,
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
Source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.