pub type AsyncStackRB<T, const N: usize> = AsyncMutRingBuf<StackStorage<T, N>>;Available on non-crate feature
vmem and crate feature async only.Expand description
A stack-allocated asynchronous ring buffer usable in concurrent environment.
Aliased Type§
pub struct AsyncStackRB<T, const N: usize> { /* private fields */ }Implementations§
Source§impl<T, const N: usize> AsyncStackRB<T, N>
impl<T, const N: usize> AsyncStackRB<T, N>
Sourcepub unsafe fn new_zeroed() -> Self
pub unsafe fn new_zeroed() -> Self
Creates a new AsyncStackRB with given capacity and zeroed (uninitialised) elements.
§Safety
The buffer must be then initialised using proper ProdIter methods (*_init ones).