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

Async version of WorkIter.

Implementations§

source§

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

source

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

source

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

source

pub fn is_prod_alive(&self) -> bool

source

pub fn is_cons_alive(&self) -> bool

source

pub fn index(&self) -> usize

Same as WorkIter::index.

source

pub unsafe fn advance(&mut self, count: usize)

Same as WorkIter::advance.

§Safety

Same as WorkIter::advance.

source

pub fn available(&mut self) -> usize

source

pub fn reset_index(&mut self)

source

pub fn detach(self) -> AsyncDetachedWorkIter<B>

Detaches the iterator yielding a DetachedWorkIter.

source

pub fn get_workable(&mut self) -> GetWorkableFuture<'_, B, T>

Returns a mutable references to the current value.

Being these references, Self::advance() has to be called when done with the mutation in order to move the iterator.

source

pub fn get_workable_slice_exact( &mut self, count: usize ) -> GetWorkableSliceExactFuture<'_, B, T>

Returns a tuple of mutable slice references, the sum of which with len equal to count.

Being these references, Self::advance() has to be called when done with the mutation in order to move the iterator.

source

pub fn get_workable_slice_avail( &mut self ) -> GetWorkableSliceAvailFuture<'_, B, T>

Returns a tuple of mutable slice references, the sum of which with len equal to Self::available().

Being these references, Self::advance() has to be called when done with the mutation in order to move the iterator.

source

pub fn get_workable_slice_multiple_of( &mut self, rhs: usize ) -> GetWorkableSliceMultipleOfFuture<'_, B, T>

Returns a tuple of mutable slice references, the sum of which with len equal to the maximum multiple of modulo.

Being these references, Self::advance() has to be called when done with the mutation in order to move the iterator.

Trait Implementations§

source§

impl<B: ConcurrentRB + MutRB<Item = T>, T> Send for AsyncWorkIter<B>

Auto Trait Implementations§

§

impl<B> Freeze for AsyncWorkIter<B>

§

impl<B> RefUnwindSafe for AsyncWorkIter<B>
where B: RefUnwindSafe,

§

impl<B> !Sync for AsyncWorkIter<B>

§

impl<B> Unpin for AsyncWorkIter<B>

§

impl<B> UnwindSafe for AsyncWorkIter<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.