MCPcopy Create free account
hub / github.com/arcjet/gravity / Direction

Enum Direction

cmd/gravity/src/codegen/func.rs:26–36  ·  view source on GitHub ↗

The direction of a function. Functions in the Component Model can be imported into a world or exported from a world.

Source from the content-addressed store, hash-verified

24/// Functions in the Component Model can be imported into a world or
25/// exported from a world.
26enum Direction<'a> {
27 /// The function is imported into the world.
28 Import {
29 /// The name of the parameter representing the interface instance
30 /// in the generated host binding function.
31 param_name: &'a GoIdentifier,
32 },
33 /// The function is exported from the world.
34 #[allow(dead_code, reason = "halfway through refactor of func bindings")]
35 Export,
36}
37
38pub struct Func<'a> {
39 direction: Direction<'a>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected