Struct gluon_vm::thread::OwnedContext
[−]
[src]
pub struct OwnedContext<'b> { /* fields omitted */ }
Methods
impl<'b> OwnedContext<'b>
[src]
fn alloc<D>(&mut self, data: D) -> Result<GcPtr<D::Value>> where D: DataDef + Traverseable, D::Value: Sized + Any
fn debug_info(&self) -> DebugInfo
Methods from Deref<Target=Context>
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
Trait Implementations
impl<'b> Deref for OwnedContext<'b>
[src]
type Target = Context
The resulting type after dereferencing
fn deref(&self) -> &Context
The method called to dereference a value