1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use holo_hash::AgentPubKey;
use holochain_serialized_bytes::prelude::*;
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
#[repr(transparent)]
#[serde(transparent)]
pub struct AppSignal(crate::ExternIO);
impl AppSignal {
pub fn new(extern_io: crate::ExternIO) -> Self {
Self(extern_io)
}
pub fn into_inner(self) -> crate::ExternIO {
self.0
}
}
#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize, SerializedBytes)]
pub struct RemoteSignal {
pub agents: Vec<AgentPubKey>,
pub signal: crate::ExternIO,
}