[−][src]Crate market
A library to standardize the traits of producing and consuming.
The core purpose of this library is to define the traits of items that interact with markets. A market stores goods that have been produced in its stock until they are consumed.
Modules
channel |
|
Structs
ApprovedProducer | Produces goods that an |
ByteWriter | Produces bytes to a writer of type |
ClosedMarketError | An error consuming a good from a closable market. |
GoodsIter | An |
PermanentQueue | An unlimited queue with a producer and consumer that are always functional. |
Reader | Reads goods of type |
StrippingConsumer | Consumes parts from a |
StrippingProducer | A |
UnlimitedQueue | Defines a queue with unlimited size that implements |
VigilantConsumer | Consumes goods that an |
Enums
NeverErr | An error that will never occur, equivalent to |
StripError | An error producing parts. |
Traits
ComposeFrom | Converts an array of parts into a composite good. |
Consumer | Consumes goods by retrieving them from the stock of a market. |
Inspector | Inspects if goods meet defined requirements. |
Producer | Produces goods by adding them to the stock of a market. |
StripFrom | Converts a single good into parts. |