aktrs/actor/signal.rs
1use crate::actor::Unspecified;
2
3/// Signals generated by the actor system.
4#[derive(Debug)]
5#[non_exhaustive]
6pub enum Signal<'a> {
7 /// A child actor failed due to an error that was unhandled (or propagated)
8 /// by it's supervisor.
9 ///
10 /// If this signal is not handled, the actor who receives it will fail with
11 /// a death pact error.
12 ChildFailed(Unspecified, &'a anyhow::Error),
13}