mm1_proto_system/
start.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use mm1_address::address::Address;
use mm1_common::impl_error_kind;
use mm1_proto::Traversable;

use crate::spawn::SpawnErrorKind;

#[derive(Debug, Traversable)]
pub struct InitAck {
    pub address: Address,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Traversable)]
pub enum StartErrorKind {
    Spawn(SpawnErrorKind),
    Exited,
    Timeout,
    InternalError,
}

impl_error_kind!(StartErrorKind);