Struct heapless::spsc::Consumer[][src]

pub struct Consumer<'a, T, N, U = usize> where
    N: ArrayLength<T>,
    U: Uxx, 
{ /* fields omitted */ }

A queue "consumer"; it can dequeue items from the queue

Methods

impl<'a, T, N> Consumer<'a, T, N, usize> where
    N: ArrayLength<T>, 
[src]

Returns if there are any items to dequeue. When this returns true, at least the first subsequent dequeue will succeed.

Returns the item in the front of the queue, or None if the queue is empty

Returns the item in the front of the queue, without checking if it's empty

Unsafety

If the queue is empty this is equivalent to calling mem::uninitialized

Trait Implementations

impl<'a, T, N, U> Send for Consumer<'a, T, N, U> where
    N: ArrayLength<T>,
    T: Send,
    U: Uxx, 
[src]

Auto Trait Implementations

impl<'a, T, N, U = usize> !Sync for Consumer<'a, T, N, U>