mutringbuf::iterators::async_iterators::cons_iter

Struct AsyncConsIter

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

Async version of ConsIter.

Implementations§

Source§

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

Source

pub fn get_workable<'b>(&mut self) -> MRBFuture<'_, Self, (), &'b mut T, true>

Async version of MRBIterator::get_workable.

Source

pub fn get_workable_slice_exact<'b>( &mut self, count: usize, ) -> MRBFuture<'_, Self, usize, (&'b mut [T], &'b mut [T]), true>

Source

pub fn get_workable_slice_avail<'b>( &mut self, ) -> MRBFuture<'_, Self, (), (&'b mut [T], &'b mut [T]), true>

Source

pub fn get_workable_slice_multiple_of<'b>( &mut self, count: usize, ) -> MRBFuture<'_, Self, usize, (&'b mut [T], &'b mut [T]), true>

Source

pub fn reset_index(&mut self)

Source

pub fn peek_ref<'b>(&mut self) -> MRBFuture<'_, Self, (), &'b T, true>

Async version of ConsIter::peek_ref.

Source

pub fn peek_slice<'b>( &mut self, count: usize, ) -> MRBFuture<'_, Self, usize, (&'b [T], &'b [T]), true>

Async version of ConsIter::peek_slice.

Source

pub fn peek_available<'b>( &mut self, ) -> MRBFuture<'_, Self, (), (&'b [T], &'b [T]), true>

Async version of ConsIter::peek_available.

Source

pub fn pop(&mut self) -> MRBFuture<'_, Self, (), T, true>

Async version of ConsIter::pop.

§Safety

See above.

Source

pub unsafe fn pop_move(&mut self) -> MRBFuture<'_, Self, (), T, true>

Async version of ConsIter::pop_move.

§Safety

See above.

Source

pub fn copy_item<'b>( &mut self, dst: &'b mut T, ) -> MRBFuture<'_, Self, &'b mut T, (), true>
where T: Copy,

Async version of ConsIter::copy_item.

Source

pub fn clone_item<'b>( &mut self, dst: &'b mut T, ) -> MRBFuture<'_, Self, &'b mut T, (), true>
where T: Clone,

Async version of ConsIter::clone_item.

Source

pub fn copy_slice<'b>( &mut self, dst: &'b mut [T], ) -> MRBFuture<'_, Self, &'b mut [T], (), true>
where T: Copy,

Async version of ConsIter::copy_slice.

Source

pub fn clone_slice<'b>( &mut self, dst: &'b mut [T], ) -> MRBFuture<'_, Self, &'b mut [T], (), true>
where T: Clone,

Async version of ConsIter::clone_slice.

Trait Implementations§

Source§

impl<'buf, B: MutRB<Item = T>, T, const W: bool> AsyncIterator for AsyncConsIter<'buf, B, W>

Source§

type I = ConsIter<'buf, B, W>

Source§

type B = B

Source§

fn register_waker(&mut self, waker: &Waker)

Source§

fn inner(&self) -> &Self::I

Source§

fn inner_mut(&mut self) -> &mut Self::I

Source§

fn into_sync(self) -> Self::I

Source§

fn from_sync(iter: Self::I) -> Self

Source§

fn detach(self) -> AsyncDetached<Self, Self::B>
where Self: Sized,

Source§

fn is_prod_alive(&self) -> bool

Source§

fn is_work_alive(&self) -> bool

Source§

fn is_cons_alive(&self) -> bool

Source§

fn prod_index(&self) -> usize

Source§

fn work_index(&self) -> usize

Source§

fn cons_index(&self) -> usize

Source§

fn index(&self) -> usize

Source§

fn available(&mut self) -> usize

Source§

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

Source§

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

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

Source§

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>,

Source§

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.