pub struct AsyncProdIter<'buf, B: MutRB> { /* private fields */ }Expand description
Async version of ProdIter.
Implementations§
Source§impl<'buf, B: MutRB<Item = T>, T> AsyncProdIter<'buf, B>
impl<'buf, B: MutRB<Item = T>, T> AsyncProdIter<'buf, B>
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 push(&mut self, item: T) -> MRBFuture<'_, Self, T, (), false> ⓘ
pub fn push(&mut self, item: T) -> MRBFuture<'_, Self, T, (), false> ⓘ
Async version of ProdIter::push.
Sourcepub fn push_slice<'b>(
&mut self,
slice: &'b [T],
) -> MRBFuture<'_, Self, &'b [T], (), true> ⓘwhere
T: Copy,
pub fn push_slice<'b>(
&mut self,
slice: &'b [T],
) -> MRBFuture<'_, Self, &'b [T], (), true> ⓘwhere
T: Copy,
Async version of ProdIter::push_slice.
Sourcepub fn push_slice_clone<'b>(
&mut self,
slice: &'b [T],
) -> MRBFuture<'_, Self, &'b [T], (), true> ⓘwhere
T: Clone,
pub fn push_slice_clone<'b>(
&mut self,
slice: &'b [T],
) -> MRBFuture<'_, Self, &'b [T], (), true> ⓘwhere
T: Clone,
Async version of ProdIter::push_slice_clone.
Sourcepub unsafe fn get_next_item_mut<'b>(
&mut self,
) -> MRBFuture<'_, Self, (), &'b mut T, true> ⓘ
pub unsafe fn get_next_item_mut<'b>( &mut self, ) -> MRBFuture<'_, Self, (), &'b mut T, true> ⓘ
Sourcepub fn get_next_item_mut_init(
&mut self,
) -> MRBFuture<'_, Self, (), *mut T, true> ⓘ
pub fn get_next_item_mut_init( &mut self, ) -> MRBFuture<'_, Self, (), *mut T, true> ⓘ
Async version of ProdIter::get_next_item_mut_init.
Trait Implementations§
Source§impl<'buf, B: MutRB<Item = T>, T> AsyncIterator for AsyncProdIter<'buf, B>
impl<'buf, B: MutRB<Item = T>, T> AsyncIterator for AsyncProdIter<'buf, B>
type I = ProdIter<'buf, B>
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> Send for AsyncProdIter<'buf, B>
Auto Trait Implementations§
impl<'buf, B> Freeze for AsyncProdIter<'buf, B>
impl<'buf, B> RefUnwindSafe for AsyncProdIter<'buf, B>where
B: RefUnwindSafe,
impl<'buf, B> !Sync for AsyncProdIter<'buf, B>
impl<'buf, B> Unpin for AsyncProdIter<'buf, B>
impl<'buf, B> UnwindSafe for AsyncProdIter<'buf, B>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