Struct mutringbuf::iterators::async_iterators::prod_iter::AsyncProdIter
source · pub struct AsyncProdIter<B: MutRB> { /* private fields */ }
Expand description
Async version of ProdIter
.
Implementations§
source§impl<B: MutRB<Item = T>, T> AsyncProdIter<B>
impl<B: MutRB<Item = T>, T> AsyncProdIter<B>
pub fn from_sync(iter: ProdIter<B>) -> Self
pub fn into_sync(self) -> ProdIter<B>
sourcepub fn is_work_alive(&self) -> bool
pub fn is_work_alive(&self) -> bool
Same as ProdIter::is_work_alive
.
sourcepub fn is_cons_alive(&self) -> bool
pub fn is_cons_alive(&self) -> bool
Same as ProdIter::is_cons_alive
.
sourcepub fn index(&self) -> usize
pub fn index(&self) -> usize
Same as ProdIter::index
.
sourcepub fn available(&mut self) -> usize
pub fn available(&mut self) -> usize
Same as ProdIter::available
.
sourcepub fn push(&mut self, value: T) -> PushFuture<'_, B, T> ⓘ
pub fn push(&mut self, value: T) -> PushFuture<'_, B, T> ⓘ
Async version of ProdIter::push
.
sourcepub fn push_slice<'b>(
&mut self,
slice: &'b [T]
) -> PushSliceFuture<'_, 'b, B, T> ⓘwhere
T: Copy,
pub fn push_slice<'b>(
&mut self,
slice: &'b [T]
) -> PushSliceFuture<'_, 'b, B, T> ⓘwhere
T: Copy,
Async version of ProdIter::push_slice
.
sourcepub fn push_slice_clone<'b>(
&mut self,
slice: &'b [T]
) -> PushSliceCloneFuture<'_, 'b, B, T> ⓘwhere
T: Clone,
pub fn push_slice_clone<'b>(
&mut self,
slice: &'b [T]
) -> PushSliceCloneFuture<'_, 'b, B, T> ⓘwhere
T: Clone,
Async version of ProdIter::push_slice_clone
.
sourcepub unsafe fn get_next_item_mut(&mut self) -> GetNextItemMutFuture<'_, B, T> ⓘ
pub unsafe fn get_next_item_mut(&mut self) -> GetNextItemMutFuture<'_, B, T> ⓘ
sourcepub fn get_next_item_mut_init(&mut self) -> GetNextItemMutInitFuture<'_, B, T> ⓘ
pub fn get_next_item_mut_init(&mut self) -> GetNextItemMutInitFuture<'_, B, T> ⓘ
Async version of ProdIter::get_next_item_mut_init
.
Trait Implementations§
impl<B: ConcurrentRB + MutRB<Item = T>, T> Send for AsyncProdIter<B>
Auto Trait Implementations§
impl<B> Freeze for AsyncProdIter<B>
impl<B> RefUnwindSafe for AsyncProdIter<B>where
B: RefUnwindSafe,
impl<B> !Sync for AsyncProdIter<B>
impl<B> Unpin for AsyncProdIter<B>
impl<B> UnwindSafe for AsyncProdIter<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