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>>>
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
PinnedFieldsOf<__Origin<'__pin, St, P>>: Unpin,
Auto Trait Implementations§
impl<St, P> Freeze for BytesChunks<St, P>where
St: Freeze,
impl<St, P> RefUnwindSafe for BytesChunks<St, P>where
St: RefUnwindSafe,
P: RefUnwindSafe,
impl<St, P> Send for BytesChunks<St, P>
impl<St, P> Sync for BytesChunks<St, P>
impl<St, P> UnwindSafe for BytesChunks<St, P>where
St: UnwindSafe,
P: 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<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