Module fdringbuf::ringbuf [] [src]

This is a fast ringbuffer that tries to avoid memory copies as much as possible. There can be one producer and one consumer, but they can be in different threads i e, they are Send but not Clone.

Structs

Receiver
Sender

Functions

channel

Create a channel (without signaling) Non-allocating - expects a pre-allocated buffer

channel_bufsize

Use this utility function to figure out how big buffer you need to allocate.