[][src]Module gluon_vm::api

The marshalling api

Re-exports

pub use self::function::*;
pub use self::record::Record;
pub use crate::thread::ActiveThread;

Modules

function
generic

Module containing types which represent generic variables in gluon's type system

mac
record

Structs

ArrayRef
Closure
Collect
Data

Stores values of variants and records.

Eff
FutureResult

Wrapper around a Future which can be used as a return value to let the virtual machine know that it must resolve the Future to receive the value.

GetableIter
Hole

Marker type representing a hole

Map
Opaque

Type implementing both Pushable and Getable of values of V regardless of wheter V implements the traits. The actual value, V is only accessible directly either by Deref if it is Userdata or a string or by the to_value method if it implements Getable.

PushAsRef

Newtype which can be used to push types implementating AsRef

UserdataValue

Wrapper which extracts a Userdata value from gluon

WithVM

Wrapper type which passes acts as the type T but also passes the VM to the called function

Enums

IO

Type representing gluon's IO type

RuntimeResult
ValueRef

Traits

AsyncPushable

Trait which allows a possibly asynchronous rust value to be pushed to the virtual machine

Getable

Trait which allows rust values to be retrieved from the virtual machine

Pushable

Trait which allows a rust value to be pushed to the virtual machine

Userdata
VmType

Trait which maps a type in rust to a type in gluon

Functions

convert

Type Definitions

Array
Generic
OpaqueRef
OpaqueValue