Rust Core Runtime for D3 -- A Framework for Server Development
The core runtime for the d3 framework. d3-core is a companion to d3-derive and d3-components. Combined, they form a framework for server development.
Usage
Add this to your Cargo.toml
:
[]
= "0.1.3"
= "0.1.3"
Example
extern crate d3_derive;
use *;
use executor;
// A trivial instruction set
// A trivial Alice
// Implement the Machine trait for Alice
// Start the scheduler and executor.
start_server;
// create the Machine from Alice, getting back a machine and Sender<StateTable>.
let = connect;
// send a command to Alice
// Alice's receive method will be invoked, with cmd of StateTable::Init.
sender.send.expect;
// Stop the scheduler and executor.
stop_server;