Struct chunky::Queue[][src]

pub struct Queue<H: Handler> { /* fields omitted */ }

A FIFO queue which stores heterogeneously sized items

Methods

impl<H: Handler> Queue<H>
[src]

Create a new queue

Number of items in the queue

Is the queue empty?

Enqueue an item of a given size. Returns a pointer that the item can be written to.

This is handled like this so items of heterogeneous types can be enqueued.

Dequeue an item. Returns a pointer to the item in the queue, unless the queue is empty.

Delete chunks which have already been read

Auto Trait Implementations

impl<H> !Send for Queue<H>

impl<H> !Sync for Queue<H>