extern crate self as behavior;
mod actor;
mod calculus;
mod effects;
mod next;
mod pool;
mod stash;
mod supervision;
mod timing;
mod watch;
mod compose;
mod machine;
mod protocol;
mod shutdown;
pub use actor::{
Address, BirthMode, Births, Create, CreationKind, Delivery, MailAddr, NoBirths, Recipient,
};
pub use calculus::{
ActionReducer, ActiveTurn, Behavior, BehaviorActed, BehaviorBase, Effects, EventInput,
FoldFailure, Folded, InitializationTurn, RouteInput, User, UserEvent, fold_events,
};
pub use compose::{Active, Compose, Initialized};
pub use effects::{Acted, Actions, Become, Own, SendAlgebra, SendInput, ServiceSends};
pub use machine::{Machine, Move};
pub use next::{Never, Step};
pub use pool::{
AffinitySelector, AssignmentId, InterruptionPolicy, JobId, KeyedPoolEvent, KeyedPoolMessage,
KeyedWorkerPool, PoolActions, PoolAssignment, PoolBehaviorSends, PoolConfigError, PoolError,
PoolEvent, PoolInterruption, PoolMessage, PoolRejection, PoolResponse, PoolSends, WorkerPhase,
WorkerPool, WorkerRetirement,
};
pub use protocol::{
ChildStopped, CreationRejection, CreationResolved, ObserveChild, ObserveCreation, ObservePeer,
PeerStopped, ReplacementResolution, ReportWorkerCreationResolved, ReportWorkerStopped,
ScheduleAfter, ScheduleAt, ShutdownRequested, TimerElapsed, TimerGeneration, TimerId,
UnwatchPeer, WorkerCreationResolved, WorkerStopped,
};
pub use shutdown::{FinalizeOnShutdown, ShutdownProtocol, ShutdownReaction, StopOnShutdown};
pub use stash::{Stash, StashRoute, StashStatus};
pub use supervision::{
FleetError, IncarnationPhase, Proxy, ProxyCommand, ProxyError, ProxyEvent, ProxySends,
RestartPolicy, Strategy, SupervisionEvent, SupervisionFailure, SupervisionFailureReaction,
Supervisor, SupervisorError, SupervisorSends, restart_all, restart_one, restart_rest,
retire_on_supervision_failure, stop_on_supervision_failure,
};
pub use timing::{
Deadline, DeadlineEvent, DeadlineReaction, DeadlineSends, ReceiveTimeout, ReceiveTimeoutEvent,
ReceiveTimeoutReaction, ReceiveTimeoutSends, TimedEvent,
};
pub use watch::{LinkReaction, Watch, WatchEvent, WatchSends, stop_on_abnormal_death};
mod exit;
pub use exit::{Crash, Exit, RestartDenial, SupervisionFailureReason};
pub use behavior_macros::behavior;
pub use behavior_macros::workers;