pub struct AsyncProdIter<B: MutRB> { /* private fields */ }
Expand description

Async version of ProdIter.

Implementations§

source§

impl<B: MutRB<Item = T>, T> AsyncProdIter<B>

source

pub fn from_sync(iter: ProdIter<B>) -> Self

source

pub fn into_sync(self) -> ProdIter<B>

source

pub fn is_work_alive(&self) -> bool

source

pub fn is_cons_alive(&self) -> bool

source

pub fn index(&self) -> usize

Same as ProdIter::index.

source

pub fn available(&mut self) -> usize

source

pub fn push(&mut self, value: T) -> PushFuture<'_, B, T>

Async version of ProdIter::push.

source

pub fn push_slice<'b>( &mut self, slice: &'b [T] ) -> PushSliceFuture<'_, 'b, B, T>
where T: Copy,

Async version of ProdIter::push_slice.

source

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.

source

pub unsafe fn get_next_item_mut(&mut self) -> GetNextItemMutFuture<'_, B, T>

source

pub fn get_next_item_mut_init(&mut self) -> GetNextItemMutInitFuture<'_, B, T>

Trait Implementations§

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.