Struct StoredInstantiationOutcome

Source
pub struct StoredInstantiationOutcome {
    pub module_addr: Stored<ModuleAddr>,
    pub maybe_remaining_fuel: Option<u32>,
}
Expand description

A stored variant of InstantiationOutcome

Fields§

§module_addr: Stored<ModuleAddr>§maybe_remaining_fuel: Option<u32>

Trait Implementations§

Source§

impl AbstractStored for StoredInstantiationOutcome

Source§

type BareTy = InstantiationOutcome

Source§

unsafe fn from_bare(bare_value: Self::BareTy, id: StoreId) -> Self

Creates a new stored object Read more
Source§

fn id(&self) -> Option<StoreId>

Gets the id of this stored object Read more
Source§

fn into_bare(self) -> Self::BareTy

Converts this stored object into its bare form that does not have any StoreId attached to it.
Source§

fn try_unwrap_into_bare( self, expected_store_id: StoreId, ) -> Result<Self::BareTy, RuntimeError>

Checks if this stored object comes from a specific store by its StoreId. If true, it converts self into its bare form, otherwise an error is returned. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.