pub struct DispatchResult {
Show 14 fields pub kind: DispatchResultKind, pub dispatch: IncomingDispatch, pub program_id: ProgramId, pub context_store: ContextStore, pub generated_dispatches: Vec<(Dispatch, u32, Option<ReservationId>)>, pub awakening: Vec<(MessageId, u32)>, pub reply_deposits: Vec<(MessageId, u64)>, pub program_candidates: BTreeMap<CodeId, Vec<(MessageId, ProgramId)>>, pub program_rents: BTreeMap<ProgramId, u32>, pub gas_amount: GasAmount, pub gas_reserver: Option<GasReserver>, pub system_reservation_context: SystemReservationContext, pub page_update: BTreeMap<GearPage, PageBuf>, pub allocations: BTreeSet<WasmPage>,
}
Expand description

Result of the specific dispatch.

Fields§

§kind: DispatchResultKind

Kind of the dispatch.

§dispatch: IncomingDispatch

Original dispatch.

§program_id: ProgramId

Program id of actor which was executed.

§context_store: ContextStore

Context store after execution.

§generated_dispatches: Vec<(Dispatch, u32, Option<ReservationId>)>

List of generated messages.

§awakening: Vec<(MessageId, u32)>

List of messages that should be woken.

§reply_deposits: Vec<(MessageId, u64)>

List of reply deposits to be provided.

§program_candidates: BTreeMap<CodeId, Vec<(MessageId, ProgramId)>>

New programs to be created with additional data (corresponding code hash and init message id).

§program_rents: BTreeMap<ProgramId, u32>

Map of program ids to paid blocks.

§gas_amount: GasAmount

Gas amount after execution.

§gas_reserver: Option<GasReserver>

Gas amount programs reserved.

§system_reservation_context: SystemReservationContext

System reservation context.

§page_update: BTreeMap<GearPage, PageBuf>

Page updates.

§allocations: BTreeSet<WasmPage>

New allocations set for program if it has been changed.

Implementations§

source§

impl DispatchResult

source

pub fn message_id(&self) -> MessageId

Return dispatch message id.

source

pub fn program_id(&self) -> ProgramId

Return program id.

source

pub fn message_source(&self) -> ProgramId

Return dispatch source program id.

source

pub fn message_value(&self) -> u128

Return dispatch message value.

source

pub fn success( dispatch: IncomingDispatch, program_id: ProgramId, gas_amount: GasAmount ) -> Self

Create partially initialized instance with the kind representing Success.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
source§

impl<T> JsonSchemaMaybe for T