pub struct AsyncConsIter<'buf, B: MutRB, const W: bool> { /* private fields */ }Expand description
Async version of ConsIter.
Implementations§
Source§impl<'buf, 'a, B: MutRB<Item = T>, T: 'buf, const W: bool> AsyncConsIter<'a, B, W>
impl<'buf, 'a, B: MutRB<Item = T>, T: 'buf, const W: bool> AsyncConsIter<'a, B, W>
Sourcepub fn get_workable<'b>(&mut self) -> MRBFuture<'_, Self, (), &'b mut T, true> ⓘ
pub fn get_workable<'b>(&mut self) -> MRBFuture<'_, Self, (), &'b mut T, true> ⓘ
Async version of MRBIterator::get_workable.
Sourcepub fn get_workable_slice_exact<'b>(
&mut self,
count: usize,
) -> MRBFuture<'_, Self, usize, (&'b mut [T], &'b mut [T]), true> ⓘ
pub fn get_workable_slice_exact<'b>( &mut self, count: usize, ) -> MRBFuture<'_, Self, usize, (&'b mut [T], &'b mut [T]), true> ⓘ
Async version of MRBIterator::get_workable_slice_exact.
Sourcepub fn get_workable_slice_avail<'b>(
&mut self,
) -> MRBFuture<'_, Self, (), (&'b mut [T], &'b mut [T]), true> ⓘ
pub fn get_workable_slice_avail<'b>( &mut self, ) -> MRBFuture<'_, Self, (), (&'b mut [T], &'b mut [T]), true> ⓘ
Async version of MRBIterator::get_workable_slice_avail.
Sourcepub fn get_workable_slice_multiple_of<'b>(
&mut self,
count: usize,
) -> MRBFuture<'_, Self, usize, (&'b mut [T], &'b mut [T]), true> ⓘ
pub fn get_workable_slice_multiple_of<'b>( &mut self, count: usize, ) -> MRBFuture<'_, Self, usize, (&'b mut [T], &'b mut [T]), true> ⓘ
Async version of MRBIterator::get_workable_slice_multiple_of.
Sourcepub fn reset_index(&mut self)
pub fn reset_index(&mut self)
Same as ConsIter::reset_index.
Sourcepub fn peek_ref<'b>(&mut self) -> MRBFuture<'_, Self, (), &'b T, true> ⓘ
pub fn peek_ref<'b>(&mut self) -> MRBFuture<'_, Self, (), &'b T, true> ⓘ
Async version of ConsIter::peek_ref.
Sourcepub fn peek_slice<'b>(
&mut self,
count: usize,
) -> MRBFuture<'_, Self, usize, (&'b [T], &'b [T]), true> ⓘ
pub fn peek_slice<'b>( &mut self, count: usize, ) -> MRBFuture<'_, Self, usize, (&'b [T], &'b [T]), true> ⓘ
Async version of ConsIter::peek_slice.
Sourcepub fn peek_available<'b>(
&mut self,
) -> MRBFuture<'_, Self, (), (&'b [T], &'b [T]), true> ⓘ
pub fn peek_available<'b>( &mut self, ) -> MRBFuture<'_, Self, (), (&'b [T], &'b [T]), true> ⓘ
Async version of ConsIter::peek_available.
Sourcepub fn copy_item<'b>(
&mut self,
dst: &'b mut T,
) -> MRBFuture<'_, Self, &'b mut T, (), true> ⓘwhere
T: Copy,
pub fn copy_item<'b>(
&mut self,
dst: &'b mut T,
) -> MRBFuture<'_, Self, &'b mut T, (), true> ⓘwhere
T: Copy,
Async version of ConsIter::copy_item.
Sourcepub fn clone_item<'b>(
&mut self,
dst: &'b mut T,
) -> MRBFuture<'_, Self, &'b mut T, (), true> ⓘwhere
T: Clone,
pub fn clone_item<'b>(
&mut self,
dst: &'b mut T,
) -> MRBFuture<'_, Self, &'b mut T, (), true> ⓘwhere
T: Clone,
Async version of ConsIter::clone_item.
Sourcepub fn copy_slice<'b>(
&mut self,
dst: &'b mut [T],
) -> MRBFuture<'_, Self, &'b mut [T], (), true> ⓘwhere
T: Copy,
pub fn copy_slice<'b>(
&mut self,
dst: &'b mut [T],
) -> MRBFuture<'_, Self, &'b mut [T], (), true> ⓘwhere
T: Copy,
Async version of ConsIter::copy_slice.
Sourcepub fn clone_slice<'b>(
&mut self,
dst: &'b mut [T],
) -> MRBFuture<'_, Self, &'b mut [T], (), true> ⓘwhere
T: Clone,
pub fn clone_slice<'b>(
&mut self,
dst: &'b mut [T],
) -> MRBFuture<'_, Self, &'b mut [T], (), true> ⓘwhere
T: Clone,
Async version of ConsIter::clone_slice.
Trait Implementations§
Source§impl<'buf, B: MutRB<Item = T>, T, const W: bool> AsyncIterator for AsyncConsIter<'buf, B, W>
impl<'buf, B: MutRB<Item = T>, T, const W: bool> AsyncIterator for AsyncConsIter<'buf, B, W>
type I = ConsIter<'buf, B, W>
type B = B
fn register_waker(&mut self, waker: &Waker)
fn inner(&self) -> &Self::I
fn inner_mut(&mut self) -> &mut Self::I
fn into_sync(self) -> Self::I
fn from_sync(iter: Self::I) -> Self
fn detach(self) -> AsyncDetached<Self, Self::B>where
Self: Sized,
Source§fn is_prod_alive(&self) -> bool
fn is_prod_alive(&self) -> bool
Same as
MRBIterator::is_prod_alive.Source§fn is_work_alive(&self) -> bool
fn is_work_alive(&self) -> bool
Same as
MRBIterator::is_work_alive.Source§fn is_cons_alive(&self) -> bool
fn is_cons_alive(&self) -> bool
Same as
MRBIterator::is_cons_alive.Source§fn prod_index(&self) -> usize
fn prod_index(&self) -> usize
Same as
MRBIterator::prod_index.Source§fn work_index(&self) -> usize
fn work_index(&self) -> usize
Same as
MRBIterator::work_index.Source§fn cons_index(&self) -> usize
fn cons_index(&self) -> usize
Same as
MRBIterator::cons_index.Source§fn index(&self) -> usize
fn index(&self) -> usize
Same as
MRBIterator::index.Source§fn available(&mut self) -> usize
fn available(&mut self) -> usize
Same as
MRBIterator::available.impl<'buf, B: ConcurrentRB + MutRB<Item = T>, T, const W: bool> Send for AsyncConsIter<'buf, B, W>
Auto Trait Implementations§
impl<'buf, B, const W: bool> Freeze for AsyncConsIter<'buf, B, W>
impl<'buf, B, const W: bool> RefUnwindSafe for AsyncConsIter<'buf, B, W>where
B: RefUnwindSafe,
impl<'buf, B, const W: bool> !Sync for AsyncConsIter<'buf, B, W>
impl<'buf, B, const W: bool> Unpin for AsyncConsIter<'buf, B, W>
impl<'buf, B, const W: bool> UnwindSafe for AsyncConsIter<'buf, B, W>where
B: RefUnwindSafe,
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