[][src]Struct gluon_vm::thread::Context

pub struct Context { /* fields omitted */ }

Methods

impl Context[src]

pub fn push_new_data(
    &mut self,
    thread: &Thread,
    tag: VmTag,
    fields: usize
) -> Result<Variants>
[src]

pub fn push_new_record(
    &mut self,
    thread: &Thread,
    fields: usize,
    field_names: &[InternedStr]
) -> Result<Variants>
[src]

pub fn alloc_with<D>(
    &mut self,
    thread: &Thread,
    data: D
) -> Result<GcRef<D::Value>> where
    D: DataDef + Trace,
    D::Value: Sized + Any
[src]

pub fn alloc_ignore_limit<D>(&mut self, data: D) -> GcRef<D::Value> where
    D: DataDef + Trace,
    D::Value: Sized + Any
[src]

pub fn set_hook(&mut self, hook: Option<HookFn>) -> Option<HookFn>[src]

pub fn set_hook_mask(&mut self, flags: HookFlags)[src]

pub fn set_max_stack_size(&mut self, limit: VmIndex)[src]

pub fn stacktrace(&self, frame_level: usize) -> Stacktrace[src]

pub unsafe fn return_future<'vm, F>(&mut self, future: F, frame_index: VmIndex) where
    F: Future<Error = Error> + Send + 'static,
    F::Item: Pushable<'vm>, 
[src]

"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

Auto Trait Implementations

impl Send for Context

impl !Sync for Context

impl Unpin for Context

impl !UnwindSafe for Context

impl !RefUnwindSafe for Context

Blanket Implementations

impl<D, T> FromPtr<D> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<T> Downcast for T where
    T: Any
[src]