pub trait TQueueLike<T>: Clone + Send {
// Required methods
fn read(&self) -> Stm<T>;
fn write(&self, value: T) -> Stm<()>;
fn is_empty(&self) -> Stm<bool>;
}
Expand description
Transactional queue-like structure.
This is a common interface between the various implementations in Simon Marlow’s book.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.