maiko 0.3.1

Lightweight event-driven actor runtime with topic-based pub/sub for Tokio
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::ActorId;

/// Internal command sent over the broadcast channel to coordinate
/// shutdown between the supervisor, broker, and actor controllers.
#[allow(clippy::enum_variant_names)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Command {
    /// Stop a single actor by ID.
    StopActor(ActorId),
    /// Shut down all actors.
    StopRuntime,
    /// Shut down the broker event loop.
    StopBroker,
}