pub struct AsyncWorkIter<'buf, B: MutRB> { /* private fields */ }Expand description
Async version of WorkIter.
Implementations§
Source§impl<'buf, B: MutRB<Item = T>, T> AsyncWorkIter<'buf, B>
impl<'buf, B: MutRB<Item = T>, T> AsyncWorkIter<'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 reset_index(&mut self)
pub fn reset_index(&mut self)
Same as WorkIter::reset_index.
Trait Implementations§
Source§impl<'buf, B: MutRB<Item = T>, T> AsyncIterator for AsyncWorkIter<'buf, B>
impl<'buf, B: MutRB<Item = T>, T> AsyncIterator for AsyncWorkIter<'buf, B>
type I = WorkIter<'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 AsyncWorkIter<'buf, B>
Auto Trait Implementations§
impl<'buf, B> Freeze for AsyncWorkIter<'buf, B>
impl<'buf, B> RefUnwindSafe for AsyncWorkIter<'buf, B>where
B: RefUnwindSafe,
impl<'buf, B> !Sync for AsyncWorkIter<'buf, B>
impl<'buf, B> Unpin for AsyncWorkIter<'buf, B>
impl<'buf, B> UnwindSafe for AsyncWorkIter<'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