pub struct Chunks { /* private fields */ }Expand description
The plain reads of an in-memory stream.
Trait Implementations§
Source§impl Chunks for Chunks
impl Chunks for Chunks
Source§fn poll_read_chunk(
&mut self,
waiter: &Waiter,
max: usize,
) -> Poll<Result<Option<Bytes>, Error>>
fn poll_read_chunk( &mut self, waiter: &Waiter, max: usize, ) -> Poll<Result<Option<Bytes>, Error>>
Pop the next message, or split off its first max bytes.
Source§fn poll_reset(&mut self, waiter: &Waiter) -> Poll<Error>
fn poll_reset(&mut self, waiter: &Waiter) -> Poll<Error>
Poll until the stream fails without reading it. See
RecvStream::poll_reset.Auto Trait Implementations§
impl !RefUnwindSafe for Chunks
impl !UnwindSafe for Chunks
impl Freeze for Chunks
impl Send for Chunks
impl Sync for Chunks
impl Unpin for Chunks
impl UnsafeUnpin for Chunks
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