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