Module rubble::link::queue [−][src]
Expand description
An SPSC queue for data channel PDUs.
Data channel PDUs are received and transmitted in time-critical code, so they’re sent through a queue to be processed at a later time (eg. in the application’s idle loop).
This module defines the following important items:
- The
PacketQueue
trait, which is implemented by all types providing a packet queue. A type implementing this trait is needed to use the Rubble stack. - The
Producer
andConsumer
traits, which define the queue functionality used after splitting aPacketQueue
. - The
SimpleQueue
,SimpleProducer
andSimpleConsumer
types, a minimal implementation of the queue interface defined byPacketQueue
,Producer
andConsumer
.
Structs
Bundles a T
along with information telling a queue whether to consume a packet.
Consumer (reader) half returned by SimpleQueue::split
.
Producer (writer) half returned by SimpleQueue::split
.
A simple packet queue that can hold a single packet.
Traits
The consuming (reading) half of a packet queue.
A splittable SPSC queue for data channel PDUs.
The producing (writing) half of a packet queue.
Functions
Runs Rubble’s packet queue testsuite against the given PacketQueue
.