Enum gluon_vm::api::RuntimeResult [−][src]
pub enum RuntimeResult<T, E> { Return(T), Panic(E), }
Variants
Return(T)
Panic(E)
Trait Implementations
impl<T, E> From<StdResult<T, E>> for RuntimeResult<T, E>
[src]
impl<T, E> From<StdResult<T, E>> for RuntimeResult<T, E>
fn from(result: StdResult<T, E>) -> RuntimeResult<T, E>
[src]
fn from(result: StdResult<T, E>) -> RuntimeResult<T, E>
Performs the conversion.
impl<T: VmType, E> VmType for RuntimeResult<T, E>
[src]
impl<T: VmType, E> VmType for RuntimeResult<T, E>
type Type = T::Type
A version of Self
which implements Any
allowing a TypeId
to be retrieved
fn make_type(vm: &Thread) -> ArcType
[src]
fn make_type(vm: &Thread) -> ArcType
Creates an gluon type which maps to Self
in rust
fn make_forall_type(vm: &Thread) -> ArcType
[src]
fn make_forall_type(vm: &Thread) -> ArcType
fn extra_args() -> VmIndex
[src]
fn extra_args() -> VmIndex
How many extra arguments a function returning this type requires. Used for abstract types which when used in return position should act like they still need more arguments before they are called Read more
impl<'vm, T: Pushable<'vm>, E: Display> Pushable<'vm> for RuntimeResult<T, E>
[src]
impl<'vm, T: Pushable<'vm>, E: Display> Pushable<'vm> for RuntimeResult<T, E>
fn push(self, vm: &'vm Thread, context: &mut Context) -> Result<()>
[src]
fn push(self, vm: &'vm Thread, context: &mut Context) -> Result<()>
Pushes self
to stack
. If the call is successful a single element should have been added to the stack and Ok(())
should be returned. If the call is unsuccessful Status:Error
should be returned and the stack should be left intact Read more
fn status_push(self, vm: &'vm Thread, context: &mut Context) -> Status where
Self: Sized,
[src]
fn status_push(self, vm: &'vm Thread, context: &mut Context) -> Status where
Self: Sized,
unsafe fn marshal_unrooted(self, vm: &'vm Thread) -> Result<Value> where
Self: Sized,
[src]
unsafe fn marshal_unrooted(self, vm: &'vm Thread) -> Result<Value> where
Self: Sized,
fn marshal<T>(self, vm: &'vm Thread) -> Result<RootedValue<T>> where
Self: Sized,
T: VmRoot<'vm>,
[src]
fn marshal<T>(self, vm: &'vm Thread) -> Result<RootedValue<T>> where
Self: Sized,
T: VmRoot<'vm>,
Auto Trait Implementations
impl<T, E> Send for RuntimeResult<T, E> where
E: Send,
T: Send,
impl<T, E> Send for RuntimeResult<T, E> where
E: Send,
T: Send,
impl<T, E> Sync for RuntimeResult<T, E> where
E: Sync,
T: Sync,
impl<T, E> Sync for RuntimeResult<T, E> where
E: Sync,
T: Sync,