The reference implementation of the thespis actor model
This crate implements the traits from the
thespis crate. It provides what you need to use actors.
Please check out the guide level documentation.
With cargo add:
cargo add thespis_impl
With cargo yaml:
dependencies: thespis_impl: ^0.2
[dependencies] thespis_impl = "0.2"
Please check out the changelog when upgrading.
This crate has few dependencies. Cargo will automatically handle it’s dependencies for you.
It is recommended to always use cargo-crev to verify the trustworthiness of each of your dependencies, including this one.
This crate has
#![forbid(unsafe_code)], but our dependencies do use unsafe.
API documentation can be found on docs.rs.
Please check out the contribution guidelines.
cargo test --all-features.
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.
Information about an actor, id, name and type_name. It implements
Can also generate a span for tracing.
The mailbox implementation.
Type returned to you by the mailbox when it ends. Await the JoinHandle returned by the executor to retrieve this.
Errors that can happen in thespis_impl.
Default buffer size for bounded channel between Addr and Mailbox.
Interface for T: Sink + Clone
An extension trait for
Sinks that provides a variety of convenient