commonware_actor/lib.rs
1//! Safely coordinate concurrent components.
2//!
3//! # Status
4//!
5//! Stability varies by primitive. See [README](https://github.com/commonwarexyz/monorepo#stability) for details.
6
7#![doc(
8 html_logo_url = "https://commonware.xyz/imgs/rustdoc_logo.svg",
9 html_favicon_url = "https://commonware.xyz/favicon.ico"
10)]
11
12commonware_macros::stability_scope!(ALPHA {
13 /// Feedback from submitting work to a bounded endpoint.
14 #[derive(Clone, Copy, Debug, PartialEq, Eq)]
15 pub enum Feedback {
16 /// The work was accepted within the configured capacity.
17 Ok,
18 /// The submission was handled but requests sender backoff.
19 Backoff,
20 /// The work was dropped.
21 Dropped,
22 /// The endpoint is closed.
23 Closed,
24 }
25
26 pub mod mailbox;
27});