Struct gluon_vm::thread::Context
[−]
[src]
pub struct Context { pub stack: Stack, pub gc: Gc, // some fields omitted }
Fields
stack: Stack
gc: Gc
Methods
impl Context
[src]
fn new_data(&mut self,
thread: &Thread,
tag: VmTag,
fields: &[Value])
-> Result<Value>
thread: &Thread,
tag: VmTag,
fields: &[Value])
-> Result<Value>
fn alloc_with<D>(&mut self, thread: &Thread, data: D) -> Result<GcPtr<D::Value>> where D: DataDef + Traverseable, D::Value: Sized + Any
fn alloc_ignore_limit<D>(&mut self, data: D) -> GcPtr<D::Value> where D: DataDef + Traverseable, D::Value: Sized + Any
fn set_hook(&mut self, hook: Option<HookFn>) -> Option<HookFn>
fn set_hook_mask(&mut self, flags: HookFlags)
fn set_max_stack_size(&mut self, limit: VmIndex)
unsafe fn return_future<'vm, F>(&mut self, future: F) where F: Future<Error=Error> + Send + 'static, F::Item: Pushable<'vm>
"Returns a future", letting the virtual machine know that future
must be resolved to
produce the actual value.
Safety
This function is unsafe because the vm
lifetime must not outlive the lifetime of the
Thread