Black-Box
A minimal, stage for actors.
API design is inspired by actix, but built around the convenience of async fn
in traits.
To get started just define an Actor and implement some message handlers:
use *;
;
;
;
async
About
Black-box is not--and does not ship with--an executor. This means you are required to bring your own, this means you are free to choose any runtime you would like.
Message Trait
Black-box does have a message trait, but currently it is just a supertrait for
'static + Send. This makes it super easy to define new message types, no need
to implement a trait on it, just implement the Handler for it, and you're good
to go.
In the future, this might change to accomodate things like message responses, however for now the same things can be accomplished by embedding a oneshot channel in the message type to handle the response.