Struct gluon_vm::thread::Context [−][src]
Fields
stack: Stack
gc: Gc
Methods
impl Context
[src]
impl Context
pub fn new_data(
&mut self,
thread: &Thread,
tag: VmTag,
fields: &[Value]
) -> Result<Value>
[src]
pub fn new_data(
&mut self,
thread: &Thread,
tag: VmTag,
fields: &[Value]
) -> Result<Value>
pub fn alloc_with<D>(
&mut self,
thread: &Thread,
data: D
) -> Result<GcPtr<D::Value>> where
D: DataDef + Traverseable,
D::Value: Sized + Any,
[src]
pub fn alloc_with<D>(
&mut self,
thread: &Thread,
data: D
) -> Result<GcPtr<D::Value>> where
D: DataDef + Traverseable,
D::Value: Sized + Any,
pub fn alloc_ignore_limit<D>(&mut self, data: D) -> GcPtr<D::Value> where
D: DataDef + Traverseable,
D::Value: Sized + Any,
[src]
pub fn alloc_ignore_limit<D>(&mut self, data: D) -> GcPtr<D::Value> where
D: DataDef + Traverseable,
D::Value: Sized + Any,
pub fn set_hook(&mut self, hook: Option<HookFn>) -> Option<HookFn>
[src]
pub fn set_hook(&mut self, hook: Option<HookFn>) -> Option<HookFn>
pub fn set_hook_mask(&mut self, flags: HookFlags)
[src]
pub fn set_hook_mask(&mut self, flags: HookFlags)
pub fn set_max_stack_size(&mut self, limit: VmIndex)
[src]
pub fn set_max_stack_size(&mut self, limit: VmIndex)
pub unsafe fn return_future<'vm, F>(&mut self, future: F, lock: Lock) where
F: Future<Error = Error> + Send + 'static,
F::Item: Pushable<'vm>,
[src]
pub unsafe fn return_future<'vm, F>(&mut self, future: F, lock: Lock) 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