1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Runact — a Rust-native actor runtime.
//!
//! Runact combines BEAM-style lightweight processes, messaging, scheduling
//! and supervision with Rust's ownership model.
//!
//! # Quick Start
//!
//! ```rust
//! use runact::{Actor, ActorId, ActorContext, ActorError, Runtime};
//!
//! struct Greeter;
//!
//! impl Actor for Greeter {
//! type Message = String;
//!
//! fn handle(&mut self, msg: String, ctx: &mut ActorContext) -> Result<(), ActorError> {
//! println!("Hello, {}!", msg);
//! Ok(())
//! }
//! }
//!
//! let mut runtime = Runtime::new().unwrap();
//! let id = runtime.spawn(Greeter).unwrap();
//! runtime.send(id, "world".to_string()).unwrap();
//! ```
//!
//! # Core Concepts
//!
//! - **Actors** — isolated units of state and behavior that communicate via messages.
//! - **Runtime** — the top-level coordinator that spawns actors and routes messages.
//! - **Supervision** — fault tolerance via configurable restart strategies.
//! - **Compute** — a thread pool for CPU-intensive work off the actor scheduler.
//! - **Timers** — scheduled one-shot and periodic message delivery.
//! - **Resources** — type-safe capability-based resource management.
pub use ;
pub use Scheduler;
pub use ;
pub use ;
pub use ;
pub use RuntimeError;
pub use ;
pub use ;