Crate muse_channel
source ·Expand description
A multi-producer, multi-consumer channel of [RootedValue]s.
This channel supports sending and receiving from blocking and async code,
and the channel types ValueSender and ValueReceiver can be passed
into the Muse runtime.
Structs§
- A future that receives a [
RootedValue] when awaited. - A future that sends a [
RootedValue] when awaited. - A receiver of [
RootedValue]s that are sent by one or moreValueSenders. - A sender of [
RootedValue]s to be received by one or moreValueReceivers.
Enums§
- Errors returned from
ValueSender::try_send.
Statics§
- A symbol for the default name for the new channel function.
Traits§
- Registers a
new_channelMuse function inself.
Functions§
- Returns a new channel with a fixed capacity.
- Returns a function that creates a new channel.
- Returns a new channel with no capacity restrictions.