//! Lifecycle observer hooks. Enables external crates (e.g.
//! `atomr-telemetry`) to observe actor spawn/stop/dead-letter events
//! without taking a dependency on `atomr-core`'s internals.
use ActorPath;
/// Implementors are notified whenever actors are spawned or stopped.
/// Methods are called on the actor's task, so they should be cheap and
/// non-blocking.
/// Implementors are notified whenever a `tell` fails because the target
/// actor has stopped. Called on the caller's thread, so implementers
/// should be cheap.