Struct mutringbuf::iterators::async_iterators::cons_iter::AsyncConsIter
source · 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>
impl<B: MutRB<Item = T>, T, const W: bool> AsyncConsIter<B, W>
pub fn from_sync(iter: ConsIter<B, W>) -> Self
pub fn into_sync(self) -> ConsIter<B, W>
sourcepub fn is_prod_alive(&self) -> bool
pub fn is_prod_alive(&self) -> bool
Same as ConsIter::is_prod_alive
.
sourcepub fn is_work_alive(&self) -> bool
pub fn is_work_alive(&self) -> bool
Same as ConsIter::is_work_alive
.
sourcepub fn index(&self) -> usize
pub fn index(&self) -> usize
Same as ConsIter::index
.
sourcepub fn available(&mut self) -> usize
pub fn available(&mut self) -> usize
Same as ConsIter::available
.
sourcepub fn reset_index(&mut self)
pub fn reset_index(&mut self)
Same as ConsIter::reset_index
.
pub fn peek_ref(&mut self) -> PeekRefFuture<'_, B, T, W> ⓘ
pub fn peek_slice(&mut self, count: usize) -> PeekSliceFuture<'_, B, T, W> ⓘ
pub fn peek_available(&mut self) -> PeekAvailableFuture<'_, B, T, W> ⓘ
pub fn copy_item<'b>(
&mut self,
dst: &'b mut T
) -> CopyItemFuture<'_, 'b, B, T, W> ⓘwhere
T: Copy,
pub fn clone_item<'b>(
&mut self,
dst: &'b mut T
) -> CloneItemFuture<'_, 'b, B, T, W> ⓘwhere
T: Clone,
pub fn copy_slice<'b>(
&mut self,
dst: &'b mut [T]
) -> CopySliceFuture<'_, 'b, B, T, W> ⓘwhere
T: Copy,
pub fn clone_slice<'b>(
&mut self,
dst: &'b mut [T]
) -> CloneSliceFuture<'_, 'b, B, T, W> ⓘwhere
T: Clone,
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more