Ector is an open source async, no-alloc actor framework for embedded devices
Ector is an open source async, no-alloc actor framework for embedded devices. It integrates with embassy, the embedded async project.
Actor System
An actor system is a framework that allows for isolating state within narrow contexts, making it easier to reason about system. Within a actor system, the primary component is an Actor, which represents the boundary of state usage. Each actor has exclusive access to its own state and only communicates with other actors through message-passing.
Example
use *;
/// A Counter that we wish to create an Actor for.
// The message our actor will handle.
;
/// An Actor implements the Actor trait.
/// The entry point of the application is using the embassy runtime.
async
Building
You can build and test the framework by running
cargo test
Directory layout
ector
- an actor frameworkmacros
- macros used by application code to simplify
Contributing
See the document CONTRIBUTING.md.