[−][src]Struct gluon_vm::api::FutureResult
Wrapper around a Future
which can be used as a return value to let the virtual machine know
that it must resolve the Future
to receive the value.
Methods
impl<F> FutureResult<F>
[src]
pub fn new<'vm>(f: F) -> Self where
F: Future<Error = Error> + Send + 'static,
F::Item: Pushable<'vm>,
[src]
F: Future<Error = Error> + Send + 'static,
F::Item: Pushable<'vm>,
Trait Implementations
impl<F> VmType for FutureResult<F> where
F: Future,
F::Item: VmType,
[src]
F: Future,
F::Item: VmType,
type Type = <F::Item as VmType>::Type
A version of Self
which implements Any
allowing a TypeId
to be retrieved
fn make_type(vm: &Thread) -> ArcType
[src]
fn extra_args() -> VmIndex
[src]
fn make_forall_type(vm: &Thread) -> ArcType
[src]
impl<'vm, F> AsyncPushable<'vm> for FutureResult<F> where
F: Future<Error = Error> + Send + 'static,
F::Item: Pushable<'vm>,
[src]
F: Future<Error = Error> + Send + 'static,
F::Item: Pushable<'vm>,
fn async_push(
self,
context: &mut ActiveThread<'vm>,
frame_index: VmIndex
) -> Result<Async<()>>
[src]
self,
context: &mut ActiveThread<'vm>,
frame_index: VmIndex
) -> Result<Async<()>>
fn async_status_push(
self,
context: &mut ActiveThread<'vm>,
frame_index: VmIndex
) -> Status where
Self: Sized,
[src]
self,
context: &mut ActiveThread<'vm>,
frame_index: VmIndex
) -> Status where
Self: Sized,
Auto Trait Implementations
impl<F> Send for FutureResult<F> where
F: Send,
F: Send,
impl<F> Sync for FutureResult<F> where
F: Sync,
F: Sync,
Blanket Implementations
impl<'vm, T> AsyncPushable for T where
T: Pushable<'vm>,
[src]
T: Pushable<'vm>,
fn async_push(Self, &mut ActiveThread<'vm>, u32) -> Result<Async<()>, Error>
[src]
fn async_status_push(
self,
context: &mut ActiveThread<'vm>,
frame_index: VmIndex
) -> Status where
Self: Sized,
[src]
self,
context: &mut ActiveThread<'vm>,
frame_index: VmIndex
) -> Status where
Self: Sized,
impl<D, T> FromPtr for T
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<Choices> CoproductSubsetter for Choices
[src]
type Remainder = Choices
fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
[src]
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<Source> Sculptor for Source
[src]
impl<T, U, I> LiftInto for T where
U: LiftFrom<T, I>,
[src]
U: LiftFrom<T, I>,
impl<T> Any for T where
T: Any,
[src]
T: Any,