Interface IFunctionResultBuilder<TResult, TOk>
A factory which constructs instances of result types which contain a return value.
Namespace: Wasmtime
Assembly: Wasmtime.Dotnet.dll
Syntax
public interface IFunctionResultBuilder<out TResult, in TOk>
where TResult : struct
Type Parameters
Name | Description |
---|---|
TResult | Type being constructed |
TOk | Type contained in the result in the success case |
Methods
| Improve this Doc View SourceCreate(TOk)
Create an new instance indicating a successful call.
Declaration
TResult Create(TOk value)
Parameters
Type | Name | Description |
---|---|---|
TOk | value | The return value of the function call |
Returns
Type | Description |
---|---|
TResult | A new TResult instance representing a successful function call |
Create(TrapAccessor)
Create a new instance indicating a trap result.
Declaration
TResult Create(TrapAccessor accessor)
Parameters
Type | Name | Description |
---|---|---|
TrapAccessor | accessor | Provides access to query information about a trap |
Returns
Type | Description |
---|---|
TResult | A new TResult instance representing a trap result |