interstice_abi/host_calls/
module.rs1use crate::{interstice_abi_macros::IntersticeType, NodeSelection};
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Serialize, Deserialize)]
5pub enum ModuleCall {
6 Publish {
7 node_selection: NodeSelection,
8 wasm_binary: Vec<u8>,
9 },
10 Remove {
11 node_selection: NodeSelection,
12 module_name: String,
13 },
14}
15
16#[derive(Debug, Deserialize, Serialize, IntersticeType, Clone)]
17pub enum ModuleEvent {
18 PublishRequest {
19 node_id: String,
20 module_name: String,
21 wasm_binary: Vec<u8>,
22 },
23 RemoveRequest {
24 node_id: String,
25 module_name: String,
26 },
27}