Skip to main content

palladium_actor/
lib.rs

1#![forbid(unsafe_code)]
2
3#[cfg(test)]
4extern crate self as palladium_actor;
5
6mod actor;
7mod bridge;
8mod determinism;
9mod engine_id;
10mod envelope;
11mod errors;
12mod handle;
13mod message;
14mod path;
15mod policy;
16mod spec;
17mod stable;
18
19#[cfg(test)]
20mod tests;
21
22// Re-export public types and functions
23pub use actor::{Actor, ActorContext, StopReason};
24pub use bridge::{CachedSendFn, Interval, Reactor, RuntimeBridge, SpawnHandle};
25pub use determinism::DeterminismLevel;
26pub use engine_id::EngineId;
27pub use envelope::Envelope;
28pub use errors::{ActorError, AskError, PathParseError, PayloadError, SendError};
29pub use handle::{Addr, AnyAddr, AskFn, AskFuture, RouteFn, SendFn, WeakAddr};
30#[cfg(feature = "serde")]
31pub use message::RemoteMessage;
32pub use message::{fnv1a_64, Message, MessagePayload};
33pub use path::{ActorPath, AddrHash};
34pub use policy::{NamespacePolicy, RestartPolicy, ShutdownPolicy};
35pub use spec::ChildSpec;
36pub use stable::{AddrRefresher, StableAddr};