Module market::channel [−][src]
Implements Producer
and Consumer
for various types of channels.
A channel is the most generic implementation of a market. A channel manages the exchange of goods from one or more Producer
s to one or more Consumer
s.
Structs
Crossbeam | A channel as implemented by |
Std | A channel as implemented by |
WithdrawnDemand | A fault thrown when attempting to produce to a channel with no |
WithdrawnSupply | A fault thrown when attempting to consume from a channel with an empty stock and no |
Enums
Size | The size of the stock of a channel. |
StdProducer | One of the senders implemented by |
Structure |
Traits
Style | Describes the style or implementation of a channel. |
Functions
create | Creates a channel of |
Type Definitions
CrossbeamConsumer | The |
CrossbeamProducer | The |