Method lrs::sync::Queue::push

Tries to add an element to the queue.

Syntax

impl<T, H> Queue<T, H>
    where H: Allocator,
{
    fn push(&self, val: T) -> Option<T>
}

Arguments

NameDescription
val

The element to be added.

Return value

Returns the element if the queue is full.