pub struct QueueStorage<T: Copy, const N: usize> { /* private fields */ }Expand description
Caller-owned storage + item buffer for a Queue in zero-heap mode.
Declare in a static and pass &STORAGE to Queue::create; in heap
mode it is ignored. See crate::MutexStorage for the pattern; this one
additionally embeds the [T; N] item buffer the queue needs.
Implementations§
Trait Implementations§
impl<T: Copy, const N: usize> Sync for QueueStorage<T, N>
Auto Trait Implementations§
impl<T, const N: usize> !Freeze for QueueStorage<T, N>
impl<T, const N: usize> !RefUnwindSafe for QueueStorage<T, N>
impl<T, const N: usize> Send for QueueStorage<T, N>where
T: Send,
impl<T, const N: usize> Unpin for QueueStorage<T, N>where
T: Unpin,
impl<T, const N: usize> UnsafeUnpin for QueueStorage<T, N>where
T: UnsafeUnpin,
impl<T, const N: usize> UnwindSafe for QueueStorage<T, N>where
T: 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