Code Monkey home page Code Monkey logo

market's Introduction

market

Infrastructure for producers and consumers.

The core purpose of this library is to define the traits of items that interact with markets. A market holds goods in a stock. Producers store goods in the stock while consumers retrieve goods from the stock.

market's People

Contributors

jsim2010 avatar

Watchers

James Cloos avatar  avatar

market's Issues

Make Consumer and Producer not rely on having a finite stock.

Currently, Consumer and Producer assume their market is finite and thus having an empty or full stock is a possible error. However, there are some implementations which have an infinite or never empty stock and thus it would be nice if their interface indicated this. Ex: have consume return Self::Error instead of ConsumeError<Self::Error>.

Add demand_for/until and force_for/until

Each function will be gated by a new time feature.

  • _until will take a time::OffsetDateTime that indicates when the block will be released. It will block until the action is successful or the current time is greater than the given time.
  • _for will take a time::Duration that indicates how long the block will occur. It will calculate the time::OffsetDateTime and call _until

Once specialization is stabilized, deprecate Blame and TryBlame

Once specialization has been stabilized, deprecate Blame and TryBlame in favor of From and TryFrom with bounds.

Current:

impl<F: Flaws, W: Flaws> Blame<Fault<W> for Fault<F>
where
    W::Insufficiency: From<F::Insufficiency>,
    W::Defect: From<F::Defect>,

Eventual:

impl<F: Flaws, W: Flaws> From<Fault<W> for Fault<F>
where
    F::Insufficiency: From<W::Insufficiency>,
    F::Defect: From<W::Defect>,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.