Module component

Source
Available on crate feature component-model only.
Expand description

Types and support for parsing the component model text format.

Structs§

Alias
An alias to a component item.
CanonErrorContextDebugMessage
Information relating to the error-context.debug-message intrinsic.
CanonErrorContextNew
Information relating to the error-context.new intrinsic.
CanonFutureCancelRead
Information relating to the future.cancel-read intrinsic.
CanonFutureCancelWrite
Information relating to the future.cancel-write intrinsic.
CanonFutureCloseReadable
Information relating to the future.close-readable intrinsic.
CanonFutureCloseWritable
Information relating to the future.close-writable intrinsic.
CanonFutureNew
Information relating to the future.new intrinsic.
CanonFutureRead
Information relating to the future.read intrinsic.
CanonFutureWrite
Information relating to the future.write intrinsic.
CanonLift
Information relating to lifting a core function.
CanonLower
Information relating to lowering a component function.
CanonResourceDrop
Information relating to the resource.drop intrinsic.
CanonResourceNew
Information relating to the resource.new intrinsic.
CanonResourceRep
Information relating to the resource.rep intrinsic.
CanonStreamCancelRead
Information relating to the stream.cancel-read intrinsic.
CanonStreamCancelWrite
Information relating to the stream.cancel-write intrinsic.
CanonStreamCloseReadable
Information relating to the stream.close-readable intrinsic.
CanonStreamCloseWritable
Information relating to the stream.close-writable intrinsic.
CanonStreamNew
Information relating to the stream.new intrinsic.
CanonStreamRead
Information relating to the stream.read intrinsic.
CanonStreamWrite
Information relating to the stream.write intrinsic.
CanonTaskReturn
Information relating to the task.return intrinsic.
CanonThreadAvailableParallelism
Information relating to the thread.spawn intrinsic.
CanonThreadSpawn
Information relating to the thread.spawn intrinsic.
CanonWaitableSetPoll
Information relating to the waitable-set.poll intrinsic.
CanonWaitableSetWait
Information relating to the waitable-set.wait intrinsic.
CanonYield
Information relating to the task.yield intrinsic.
CanonicalFunc
A WebAssembly canonical function to be inserted into a component.
Component
A parsed WebAssembly component module.
ComponentExport
An entry in a WebAssembly component’s export section.
ComponentExportType
The type of an exported item from an component or instance type.
ComponentExternName
The different ways an import can be named.
ComponentFunctionParam
A parameter of a ComponentFunctionType.
ComponentFunctionResult
A result of a ComponentFunctionType.
ComponentFunctionType
A component function type with parameters and result.
ComponentImport
An import statement and entry in a WebAssembly component.
ComponentType
A type definition for a component type.
ComponentValTypeUse
A value type declaration used for values in import signatures.
CoreFunc
A declared core function.
CoreInstance
A core instance defined by instantiation or exporting core items.
CoreInstanceExport
An exported item as part of a core instance.
CoreInstantiationArg
An argument to instantiate a core module.
CoreItemRef
Parses core item references.
CoreModule
A core WebAssembly module to be created as part of a component.
CoreType
A core type declaration.
Custom
A custom section within a component.
Enum
An enum type.
Flags
A flags type.
Func
A declared component function.
Future
A future type.
IndexOrCoreRef
Convenience structure to parse $f or (item $f).
IndexOrRef
Convenience structure to parse $f or (item $f).
InlineComponentValType
An inline-only component value type.
InlineExport
A listing of inline (export "foo" <url>) statements on a WebAssembly component item in its textual format.
InlineExportAlias
A inline alias for component exported items.
InlineImport
A listing of a inline (import "foo") statement.
Instance
A component instance defined by instantiation or exporting items.
InstanceType
A type definition for an instance type.
InstantiationArg
An argument to instantiate a component.
ItemRef
Parses component item references.
ItemSig
An item signature for imported items.
ItemSigNoName
An item signature for imported items.
List
A list type.
ModuleType
A type definition for a core module.
NestedComponent
A nested WebAssembly component.
OptionType
An optional type.
Record
A record defined type.
RecordField
A record type field.
ResourceType
A type definition for an instance type.
ResultType
A result type.
Start
A function to call at instantiation time.
Stream
A stream type.
Tuple
A tuple type.
Type
A type declaration in a component.
Variant
A variant defined type.
VariantCase
A case of a variant type.

Enums§

AliasTarget
The target of a component alias.
CanonOpt
Canonical ABI options.
CanonicalFuncKind
Possible ways to define a canonical function in the text format.
ComponentDefinedType
ComponentExportAliasKind
Represents the kind of instance export alias.
ComponentExportKind
The kind of exported item.
ComponentField
A listing of all possible fields that can make up a WebAssembly component.
ComponentKind
The different kinds of ways to define a component.
ComponentOuterAliasKind
Represents the kind of outer alias.
ComponentTypeDecl
A declaration of a component type.
ComponentTypeUse
A reference to a type defined in this component.
ComponentValType
A component value type.
CoreFuncKind
Represents the kind of core functions.
CoreInstanceKind
The kinds of core instances in the text format.
CoreInstantiationArgKind
The kind of core instantiation argument.
CoreModuleKind
Possible ways to define a core module in the text format.
CoreTypeDef
Represents a core type definition.
CoreTypeUse
A reference to a core type defined in this component.
FuncKind
Represents the kind of component functions.
InstanceKind
The kinds of instances in the text format.
InstanceTypeDecl
A declaration of an instance type.
InstantiationArgKind
The kind of instantiation argument.
ItemSigKind
The kind of signatures for imported items.
ModuleTypeDecl
The declarations of a ModuleType.
NestedComponentKind
The different kinds of ways to define a nested component.
PrimitiveValType
A primitive value type.
Refinement
A refinement for a variant case.
TypeBounds
Represents the bounds applied to types being imported.
TypeDef
A definition of a component type.
WastVal
Expression that can be used inside of invoke expressions for core wasm functions.