mutringbuf::iterators::async_iterators::prod_iter

Struct AsyncProdIter

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

Async version of ProdIter.

Implementations§

Source§

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

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 push(&mut self, item: T) -> MRBFuture<'_, Self, T, (), false>

Async version of ProdIter::push.

Source

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

Async version of ProdIter::push_slice.

Source

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

Async version of ProdIter::push_slice_clone.

Source

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

Source

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

Source

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

Async version of ProdIter::get_next_slices_mut.

§Safety

See above.

Trait Implementations§

Source§

impl<'buf, B: MutRB<Item = T>, T> AsyncIterator for AsyncProdIter<'buf, B>

Source§

type I = ProdIter<'buf, B>

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> Send for AsyncProdIter<'buf, B>

Auto Trait Implementations§

§

impl<'buf, B> Freeze for AsyncProdIter<'buf, B>

§

impl<'buf, B> RefUnwindSafe for AsyncProdIter<'buf, B>
where B: RefUnwindSafe,

§

impl<'buf, B> !Sync for AsyncProdIter<'buf, B>

§

impl<'buf, B> Unpin for AsyncProdIter<'buf, B>

§

impl<'buf, B> UnwindSafe for AsyncProdIter<'buf, 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>,

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.