Trait concurrency_traits::queue::TryQueue [−][src]
pub trait TryQueue { type Item; fn try_push(&self, value: Self::Item) -> Result<(), Self::Item>; fn try_pop(&self) -> Option<Self::Item>; }
Expand description
A generic queue that supports try operations
Associated Types
Required methods
Implementors
impl<T, CS> TryQueue for ParkQueue<T, CS> where
CS: ThreadParker + ThreadFunctions,
CS::ThreadId: Clone,
[src]
impl<T, CS> TryQueue for ParkQueue<T, CS> where
CS: ThreadParker + ThreadFunctions,
CS::ThreadId: Clone,
[src]