Struct bytes_stream::BytesChunks
source · pub struct BytesChunks<St: Stream, P> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<St: FusedStream<Item = Bytes>> FusedStream for BytesChunks<St, Bytes>
impl<St: FusedStream<Item = Bytes>> FusedStream for BytesChunks<St, Bytes>
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true if the stream should no longer be polled.source§impl<E, St: FusedStream<Item = Result<Bytes, E>>> FusedStream for BytesChunks<St, Result<Bytes, TryBytesChunksError<Bytes, E>>>
impl<E, St: FusedStream<Item = Result<Bytes, E>>> FusedStream for BytesChunks<St, Result<Bytes, TryBytesChunksError<Bytes, E>>>
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true if the stream should no longer be polled.source§impl<St: Stream<Item = Bytes>> Stream for BytesChunks<St, Bytes>
impl<St: Stream<Item = Bytes>> Stream for BytesChunks<St, Bytes>
source§impl<E, St: Stream<Item = Result<Bytes, E>>> Stream for BytesChunks<St, Result<Bytes, TryBytesChunksError<Bytes, E>>>
impl<E, St: Stream<Item = Result<Bytes, E>>> Stream for BytesChunks<St, Result<Bytes, TryBytesChunksError<Bytes, E>>>
source§impl<E, St: Stream<Item = Result<Vec<u8>, E>>> Stream for BytesChunks<St, Result<Bytes, TryBytesChunksError<Vec<u8>, E>>>
impl<E, St: Stream<Item = Result<Vec<u8>, E>>> Stream for BytesChunks<St, Result<Bytes, TryBytesChunksError<Vec<u8>, E>>>
§type Item = Result<Vec<u8, Global>, TryBytesChunksError<Vec<u8, Global>, E>>
type Item = Result<Vec<u8, Global>, TryBytesChunksError<Vec<u8, Global>, E>>
Values yielded by the stream.
source§impl<St: Stream<Item = Vec<u8>>> Stream for BytesChunks<St, Vec<u8>>
impl<St: Stream<Item = Vec<u8>>> Stream for BytesChunks<St, Vec<u8>>
impl<'__pin, St: Stream, P> Unpin for BytesChunks<St, P>where __Origin<'__pin, St, P>: Unpin,
Auto Trait Implementations§
impl<St, P> RefUnwindSafe for BytesChunks<St, P>where P: RefUnwindSafe, St: RefUnwindSafe,
impl<St, P> Send for BytesChunks<St, P>where P: Send, St: Send,
impl<St, P> Sync for BytesChunks<St, P>where P: Sync, St: Sync,
impl<St, P> UnwindSafe for BytesChunks<St, P>where P: UnwindSafe, St: UnwindSafe,
Blanket Implementations§
source§impl<T> BytesStream for Twhere
T: Stream,
impl<T> BytesStream for Twhere T: Stream,
source§fn bytes_chunks<T>(self, capacity: usize) -> BytesChunks<Self, T>where
Self: Sized,
fn bytes_chunks<T>(self, capacity: usize) -> BytesChunks<Self, T>where Self: Sized,
Group bytes in chunks of
capacity. Read moresource§fn try_bytes_chunks<T, E>(
self,
capacity: usize
) -> BytesChunks<Self, Result<Bytes, TryBytesChunksError<T, E>>>where
Self: Sized,
fn try_bytes_chunks<T, E>( self, capacity: usize ) -> BytesChunks<Self, Result<Bytes, TryBytesChunksError<T, E>>>where Self: Sized,
Group result of bytes in chunks of
capacity. Read more