pub type AsyncCons<R> = AsyncWrap<R, false, true>;
Aliased Type§
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