Expand description
Async Buffer
A bounded SPSC, FIFO, async buffer that supports arbitrary weights for values.
Weight is used to bound the channel, on creation you specify a max weight and for each value you specify a weight.
Structs§
- Buffer
Appender - The appender/sink side of the buffer.
- Buffer
Sink Ready - A
Future
for waiting for capacity in the buffer. - Buffer
Sink Send - A
Future
for adding an item to the buffer. - Buffer
Stream - The stream side of the buffer.
Enums§
Functions§
- new_
buffer - Initializes a new buffer with the provided capacity.