photon_core/lib.rs
1//! Core identity and shared types for Photon (no delivery topology).
2//!
3//! Portable actor reconstruction used by handlers and hosts. Delivery backends and the runtime
4//! live in other crates.
5//!
6//! ## Entry points
7//!
8//! - [`IdentityFactory`] / [`Actor`] — reconstruct actors from captured JSON at handler dispatch
9//! - [`JsonIdentityFactory`] / [`JsonActor`] — JSON stubs for tests and examples
10//! - [`IdentityError`] — identity port failures
11
12pub mod error;
13pub mod identity;
14pub mod stub_identity;
15
16pub use error::IdentityError;
17pub use identity::{Actor, IdentityFactory};
18// `actor_downcast_methods` is exported via `#[macro_export]` from `identity`.
19pub use stub_identity::{JsonActor, JsonIdentityFactory};