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,
[src]
D: DataDef + Traverseable,
D::Value: Sized + Any,
fn debug_info(&self) -> DebugInfo
[src]
Methods from Deref<Target = Context>
fn new_data(
&mut self,
thread: &Thread,
tag: VmTag,
fields: &[Value]
) -> Result<Value>
[src]
&mut self,
thread: &Thread,
tag: VmTag,
fields: &[Value]
) -> Result<Value>
fn new_record(
&mut self,
thread: &Thread,
tag: VmTag,
fields: &[Value]
) -> Result<Value>
[src]
&mut self,
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,
[src]
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,
[src]
D: DataDef + Traverseable,
D::Value: Sized + Any,
fn set_hook(&mut self, hook: Option<HookFn>) -> Option<HookFn>
[src]
fn set_hook_mask(&mut self, flags: HookFlags)
[src]
fn set_max_stack_size(&mut self, limit: VmIndex)
[src]
fn get_fields(&mut self, tag: VmTag) -> Option<&Arc<Vec<InternedStr>>>
[src]
fn get_map(&mut self, fields: &[InternedStr]) -> VmTag
[src]
unsafe fn return_future<'vm, F>(&mut self, future: F) where
F: Future<Error = Error> + Send + 'static,
F::Item: Pushable<'vm>,
[src]
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
[src]
Dereferences the value.