Module holochain_zome_types::zome
source · Expand description
A Zome
is a module of app-defined code which can be run by Holochain.
A group of Zomes are composed to form a DnaDef
.
Real-world Holochain Zomes are written in Wasm. This module also provides for an “inline” zome definition, which is written using Rust closures, and is useful for quickly defining zomes on-the-fly for tests.
Modules§
- A variant of Zome which is defined entirely by native, inline Rust code
Structs§
- A single function name.
- A zome defined by Wasm bytecode
- A Holochain Zome. Includes the ZomeDef as well as the name of the Zome.
- ZomeName as a String.
Enums§
- Just the definition of a Zome, without the name included. This exists mainly for use in HashMaps where ZomeDefs are keyed by ZomeName.
- Anything that can go wrong while calling a HostFnApi method