Crate mun_runtime[][src]

The Mun Runtime

The Mun Runtime provides functionality for automatically hot reloading Mun C ABI compliant shared libraries.

Macros

invoke_fn

Invokes a runtime function and returns a Result that contains either the output value or an error that can be used to retry the function invocation.

Structs

Assembly

An assembly is a hot reloadable compilation unit, consisting of one or more Mun modules.

DispatchTable

A runtime dispatch table that maps full paths to function and struct information.

InvokeErr0

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr1

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr2

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr3

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr4

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr5

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr6

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr7

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr8

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr9

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr10

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr11

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr12

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr13

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr14

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

InvokeErr15

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

RootedStruct

Type-agnostic wrapper for interoperability with a Mun struct, that has been rooted. To marshal, obtain a StructRef for the RootedStruct.

Runtime

A runtime for the Mun language.

RuntimeBuilder

A builder for the Runtime.

RuntimeOptions

Options for the construction of a Runtime.

StructRef

Type-agnostic wrapper for interoperability with a Mun struct. This is merely a reference to the Mun struct, that will be garbage collected unless it is rooted.

UnsafeTypeInfo

UnsafeTypeInfo is a type that wraps a NonNull<TypeInfo> and indicates unsafe interior operations on the wrapped TypeInfo. The unsafety originates from uncertainty about the lifetime of the wrapped TypeInfo.

Traits

ArgumentReflection

A type to emulate dynamic typing across compilation units for statically typed values.

IntoFunctionDefinition

A value-to-FunctionDefinition conversion that consumes the input value.

Marshal

Used to do value-to-value conversions that require runtime type information while consuming the input value.

ReturnTypeReflection

A type to emulate dynamic typing across compilation units for static types.