Expand description
A mpsc channel that applies backpressure based on byte size.
Re-exports§
pub use sync::Receiver;pub use sync::Select;pub use sync::SelectedOperation;pub use sync::Sender;pub use sync::channel;
Modules§
- async_
broadcast_ channel - Async (tokio-based) broadcast channel with byte-based backpressure.
- async_
mpsc_ channel - Thin wrapper around
tokio::sync::mpscthat logs a warning if send blocks too long. - sync
- Synchronous mpsc channel with byte-based backpressure.
Macros§
- select
- Wait on two receivers and execute whichever branch becomes ready first.
Structs§
- Recv
Error - An error returned from the
recvmethod. - Select
Timeout Error - An error returned from the
select_timeoutmethod. - Send
Error - An error returned from the
sendmethod. - Sized
Message - A message together with its size in bytes.
- TrySelect
Error - An error returned from the
try_selectmethod.
Enums§
- Recv
Timeout Error - An error returned from the
recv_timeoutmethod. - TryRecv
Error - An error returned from the
try_recvmethod.