pub struct Ring<T, const N: usize> {
pub ops: [AtomicMemoryRing; N],
/* private fields */
}Fields
ops: [AtomicMemoryRing; N]Implementations
Removes the first element and returns it.
Returns Err if the Ring is empty or in critical section.
Removes the first element and returns it.
Returns Err if the Ring is empty.
Notice: Spin
Appends an element to the back of the Ring.
Returns Err if the Ring is full or in critical section.