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,
}