mutringbuf::iterators::async_iterators::work_iter

Struct AsyncWorkIter

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

Async version of WorkIter.

Implementations§

Source§

impl<'buf, B: MutRB<Item = T>, T> AsyncWorkIter<'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 reset_index(&mut self)

Trait Implementations§

Source§

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

Source§

type I = WorkIter<'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 AsyncWorkIter<'buf, B>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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