pub trait RtQueueBase<T>: Send + Sync {
// Required methods
fn push(&self, value: T) -> QueueResult<()>;
fn pop(&self) -> Option<T>;
fn len(&self) -> usize;
fn capacity(&self) -> usize;
fn clear(&self);
// Provided methods
fn is_empty(&self) -> bool { ... }
fn is_full(&self) -> bool { ... }
}Expand description
Base trait for all real-time safe queues.
Implementations must be:
- Lock-free (no mutexes)
- RT-safe (no allocations, no blocking)