Crates.io | thespis |
lib.rs | thespis |
version | 0.2.0 |
source | src |
created_at | 2019-08-30 18:47:44.149098 |
updated_at | 2022-05-30 13:40:03.229415 |
description | The interface of the thespis actor model (contains only traits). |
homepage | https://github.com/thespis-rs/thespis_iface |
repository | https://github.com/thespis-rs/thespis_iface |
max_upload_size | |
id | 160975 |
size | 33,153 |
Interface of the thespis actor model.
The interface of the thespis actor model (contains only traits). This defines the expected behavior for Addresses that can send to Actors, as well as the [Handler
] trait and the [Message
] trait.
There used to be a Mailbox
trait, but it turns out that the mailbox is not depended on by any of the other components, so it's iplementation can be freely changed without requiring an interface.
The purpose for the split between interface and implementation is 2-fold:
The reference implementation can be found in the thespis_impl crate.
To get started with thespis, please check out the guide level documentation.
With cargo add:
cargo add thespis
With cargo yaml:
dependencies:
thespis: ^0.2
In Cargo.toml:
[dependencies]
thespis = "0.2"
Please check out the changelog when upgrading.
This crate has few dependencies. Cargo will automatically handle it's dependencies for you. Check Cargo.yml
for the list of dependencies.
There is one optional feature, derive
, enabled by default which adds proc macros for deriving the Message
trait as well as removing some boilerplate when implementing Handler
.
This crate does not use unsafe, but it's dependencies do.
Please refer to the thespis_impl crate to see examples of usage.
API documentation can be found on docs.rs.
Please check out the contribution guidelines.
As this crate only provides traits, there aren't any tests. You can check the thespis_impl crate for the tests.
Any of the behaviors described in point 4 "Unacceptable Behavior" of the Citizens Code of Conduct are not welcome here and might get you banned. If anyone, including maintainers and moderators of the project, fail to respect these/your limits, you are entitled to call them out.