mm1_proto_system/stop.rs
1use mm1_address::address::Address;
2use mm1_common::impl_error_kind;
3use mm1_proto::message;
4
5#[derive(Debug)]
6#[message]
7pub struct Exit {
8 pub peer: Address,
9}
10
11#[derive(Debug)]
12#[message]
13pub struct Kill {
14 pub peer: Address,
15}
16
17#[derive(Debug, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
18#[message]
19pub enum StopErrorKind {
20 NotFound,
21 Timeout,
22 InternalError,
23}
24
25impl_error_kind!(StopErrorKind);