mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Support module-inferred leaf hosts
This commit is contained in:
@@ -19,11 +19,8 @@ struct EchoLeaf {
|
||||
sessions: BTreeMap<HookKey, EchoOpen>,
|
||||
}
|
||||
|
||||
leaf! {
|
||||
id = "org.example.v1.echo",
|
||||
procedures = [EchoOpen],
|
||||
endpoint_struct = EchoLeaf,
|
||||
}
|
||||
#[leaf(id = "org.example.v1.echo", procedures = [EchoOpen], endpoint_struct = EchoLeaf)]
|
||||
struct Echo;
|
||||
|
||||
#[derive(Archive, Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
|
||||
struct EchoRequest {
|
||||
|
||||
Reference in New Issue
Block a user