Trait concurrency_traits::queue::TryPrependQueue[][src]

pub trait TryPrependQueue: TryQueue {
    fn try_push_front(&self, value: Self::Item) -> Result<(), Self::Item>;
}
Expand description

A queue that can be attempt to be prepended to

Required methods

fn try_push_front(&self, value: Self::Item) -> Result<(), Self::Item>[src]

Adds an item to the front of the queue without blocking

Implementors

impl<T, S, CS> TryPrependQueue for SemaphoreQueue<T, S, CS> where
    S: TrySemaphore,
    CS: ThreadFunctions
[src]

fn try_push_front(&self, value: Self::Item) -> Result<(), Self::Item>[src]