pub type AsyncCons<R> = AsyncWrap<R, false, true>;Aliased Type§
pub struct AsyncCons<R> { /* private fields */ }Trait Implementations§
Source§impl<R: AsyncRbRef> AsyncConsumer for AsyncCons<R>
impl<R: AsyncRbRef> AsyncConsumer for AsyncCons<R>
fn register_waker(&self, waker: &Waker)
fn close(&mut self)
Source§fn pop(&mut self) -> PopFuture<'_, Self> ⓘ
fn pop(&mut self) -> PopFuture<'_, Self> ⓘ
Pop item from the ring buffer waiting asynchronously if the buffer is empty. Read more
Source§fn wait_occupied(&mut self, count: usize) -> WaitOccupiedFuture<'_, Self> ⓘ
fn wait_occupied(&mut self, count: usize) -> WaitOccupiedFuture<'_, Self> ⓘ
Wait for the buffer to contain at least
count items or to close. Read moreSource§fn pop_exact<'a: 'b, 'b>(
&'a mut self,
slice: &'b mut [Self::Item],
) -> PopSliceFuture<'a, 'b, Self> ⓘ
fn pop_exact<'a: 'b, 'b>( &'a mut self, slice: &'b mut [Self::Item], ) -> PopSliceFuture<'a, 'b, Self> ⓘ
Pop item from the ring buffer waiting asynchronously if the buffer is empty. Read more
fn pop_until_end<'a: 'b, 'b>( &'a mut self, vec: &'b mut Vec<Self::Item>, ) -> PopVecFuture<'a, 'b, Self> ⓘ
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Option<Self::Item>>where
Self: Unpin,
fn poll_read( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut [u8], ) -> Poll<Result<usize>>
Source§impl<R: AsyncRbRef> AsyncRead for AsyncCons<R>where
Self: AsyncConsumer<Item = u8>,
Available on crate feature std only.
impl<R: AsyncRbRef> AsyncRead for AsyncCons<R>where
Self: AsyncConsumer<Item = u8>,
Available on crate feature
std only.