Struct mutringbuf::ConcurrentMutRingBuf
source · pub struct ConcurrentMutRingBuf<S: Storage> { /* private fields */ }
Implementations§
source§impl<S: Storage<Item = T>, T> ConcurrentMutRingBuf<S>
impl<S: Storage<Item = T>, T> ConcurrentMutRingBuf<S>
sourcepub fn split_mut(
self,
) -> (ProdIter<ConcurrentMutRingBuf<S>>, WorkIter<ConcurrentMutRingBuf<S>>, ConsIter<ConcurrentMutRingBuf<S>, true>)
pub fn split_mut( self, ) -> (ProdIter<ConcurrentMutRingBuf<S>>, WorkIter<ConcurrentMutRingBuf<S>>, ConsIter<ConcurrentMutRingBuf<S>, true>)
sourcepub fn split(
self,
) -> (ProdIter<ConcurrentMutRingBuf<S>>, ConsIter<ConcurrentMutRingBuf<S>, false>)
pub fn split( self, ) -> (ProdIter<ConcurrentMutRingBuf<S>>, ConsIter<ConcurrentMutRingBuf<S>, false>)
sourcepub fn split_mut_async(
self,
) -> (AsyncProdIter<ConcurrentMutRingBuf<S>>, AsyncWorkIter<ConcurrentMutRingBuf<S>>, AsyncConsIter<ConcurrentMutRingBuf<S>, true>)
pub fn split_mut_async( self, ) -> (AsyncProdIter<ConcurrentMutRingBuf<S>>, AsyncWorkIter<ConcurrentMutRingBuf<S>>, AsyncConsIter<ConcurrentMutRingBuf<S>, true>)
Consumes the buffer, yielding three async iterators. See:
sourcepub fn split_async(
self,
) -> (AsyncProdIter<ConcurrentMutRingBuf<S>>, AsyncConsIter<ConcurrentMutRingBuf<S>, false>)
pub fn split_async( self, ) -> (AsyncProdIter<ConcurrentMutRingBuf<S>>, AsyncConsIter<ConcurrentMutRingBuf<S>, false>)
Consumes the buffer, yielding two async iterators. See:
source§impl<T> ConcurrentMutRingBuf<HeapStorage<T>>
impl<T> ConcurrentMutRingBuf<HeapStorage<T>>
sourcepub unsafe fn new_zeroed(capacity: usize) -> Self
pub unsafe fn new_zeroed(capacity: usize) -> Self
source§impl<T, const N: usize> ConcurrentMutRingBuf<StackStorage<T, N>>
impl<T, const N: usize> ConcurrentMutRingBuf<StackStorage<T, N>>
sourcepub unsafe fn new_zeroed() -> Self
pub unsafe fn new_zeroed() -> Self
Trait Implementations§
Auto Trait Implementations§
impl<S> !Freeze for ConcurrentMutRingBuf<S>
impl<S> !RefUnwindSafe for ConcurrentMutRingBuf<S>
impl<S> Send for ConcurrentMutRingBuf<S>where
S: Send,
impl<S> !Sync for ConcurrentMutRingBuf<S>
impl<S> Unpin for ConcurrentMutRingBuf<S>where
S: Unpin,
impl<S> UnwindSafe for ConcurrentMutRingBuf<S>where
S: UnwindSafe,
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