pub struct AsyncConsIter<B: MutRB, const W: bool> { /* private fields */ }
Expand description

Async version of ConsIter.

Implementations§

source§

impl<B: MutRB<Item = T>, T, const W: bool> AsyncConsIter<B, W>

source

pub fn from_sync(iter: ConsIter<B, W>) -> Self

source

pub fn into_sync(self) -> ConsIter<B, W>

source

pub fn is_prod_alive(&self) -> bool

source

pub fn is_work_alive(&self) -> bool

source

pub fn index(&self) -> usize

Same as ConsIter::index.

source

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

Same as ConsIter::advance.

§Safety

Same as ConsIter::advance.

source

pub fn available(&mut self) -> usize

source

pub fn reset_index(&mut self)

source

pub fn peek_ref(&mut self) -> PeekRefFuture<'_, B, T, W>

source

pub fn peek_slice(&mut self, count: usize) -> PeekSliceFuture<'_, B, T, W>

source

pub fn peek_available(&mut self) -> PeekAvailableFuture<'_, B, T, W>

source

pub unsafe fn pop(&mut self) -> PopFuture<'_, B, T, W>

Tries to pop an element, moving it.

§Safety

Same as ConsIter::pop

source

pub fn copy_item<'b>( &mut self, dst: &'b mut T ) -> CopyItemFuture<'_, 'b, B, T, W>
where T: Copy,

source

pub fn clone_item<'b>( &mut self, dst: &'b mut T ) -> CloneItemFuture<'_, 'b, B, T, W>
where T: Clone,

source

pub fn copy_slice<'b>( &mut self, dst: &'b mut [T] ) -> CopySliceFuture<'_, 'b, B, T, W>
where T: Copy,

source

pub fn clone_slice<'b>( &mut self, dst: &'b mut [T] ) -> CloneSliceFuture<'_, 'b, B, T, W>
where T: Clone,

Trait Implementations§

source§

impl<B: ConcurrentRB + MutRB<Item = T>, T, const W: bool> Send for AsyncConsIter<B, W>

Auto Trait Implementations§

§

impl<B, const W: bool> Freeze for AsyncConsIter<B, W>

§

impl<B, const W: bool> RefUnwindSafe for AsyncConsIter<B, W>
where B: RefUnwindSafe,

§

impl<B, const W: bool> !Sync for AsyncConsIter<B, W>

§

impl<B, const W: bool> Unpin for AsyncConsIter<B, W>

§

impl<B, const W: bool> UnwindSafe for AsyncConsIter<B, W>
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.