Expand description
This crate provides a backend implementation for the dialectic crate using
tokio::sync::mpsc channels carrying boxed values `Box<dyn Any
- Send>`, which are downcast to their true type (inferred from the session type) on the other end of the channel. Select this backend if you’re using the Tokio runtime for asynchrony and you only need to communicate between tasks in the same process.
Structs§
- Receiver
- A bounded receiver for dynamically typed values. See
tokio::sync::mpsc::Receiver. - Send
Error - Error returned by the
Sender. - Sender
- A bounded sender for dynamically typed values. See
tokio::sync::mpsc::Sender. - Unbounded
Receiver - An unbounded receiver for dynamically typed values. See
tokio::sync::mpsc::UnboundedReceiver. - Unbounded
Sender - An unbounded sender for dynamically typed values. See
tokio::sync::mpsc::UnboundedSender.
Enums§
- Error
- An error thrown while receiving from or sending to a dynamically typed
tokio::sync::mpscchannel. - Recv
Error - An error thrown while receiving from a dynamically typed
tokio::sync::mpscchannel.
Functions§
- channel
- Create a bounded mpsc channel for transporting dynamically typed values.
- unbounded_
channel - Create an unbounded mpsc channel for transporting dynamically typed values.
Type Aliases§
- Chan
- Shorthand for a
Chanusing a boundedSenderandReceiver. - Unbounded
Chan - Shorthand for a
Chanusing an unboundedUnboundedSenderandUnboundedReceiver.