24 lines
544 B
Rust
24 lines
544 B
Rust
use crate::types::ExitStatus;
|
|
|
|
/// Public managed-process commands.
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub enum ProcessCommand {
|
|
Stop {
|
|
kill_after: Option<std::time::Duration>,
|
|
},
|
|
}
|
|
|
|
/// Public managed-process outputs.
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub enum ProcessOutput {
|
|
Started { pid: u32 },
|
|
SpawnFailed { error: String },
|
|
Exited { status: ExitStatus },
|
|
Error { error: String },
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub(crate) enum ProcessActorCommand {
|
|
Command(ProcessCommand),
|
|
SupervisorWake,
|
|
}
|