Trait async_stm::queues::TQueueLike
source · pub trait TQueueLike<T>: Clone + Send {
// Required methods
fn read(&self) -> StmResult<T>;
fn write(&self, value: T) -> StmResult<()>;
fn is_empty(&self) -> StmResult<bool>;
}Expand description
Transactional queue-like structure.
This is a common interface between the various implementations in Simon Marlow’s book.