Skip to main content

Crate unbounded_spsc

Crate unbounded_spsc 

Source
Expand description

This library adapts the block-waiting recv mechanism from the Rust standard library to an unbounded SPSC channel backed by spsc.

§Delivery guarantee

A successful Sender::send (Ok(())) does not guarantee that the corresponding Receiver::recv will observe the message. If the receiver is dropped concurrently with a send, the in-flight value may be silently discarded (it is destructed properly when the underlying queue is dropped; it is not leaked). This is a deliberate weakening relative to the std-library stream-flavor channel from which this design was originally adapted.

Macros§

select

Structs§

IntoIter
Iter
Receiver
RecvError
Sender disconnected, no further messages will ever be received.
SendError
Receiver disconnected, message will never be deliverable.
Sender
TryIter

Enums§

RecvTimeoutError
SelectionResult
TryRecvError

Functions§

channel