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 gas_amount: GasAmount,
pub gas_reserver: Option<GasReserver>,
pub system_reservation_context: SystemReservationContext,
pub page_update: BTreeMap<GearPage, PageBuf>,
pub allocations: Option<IntervalsTree<WasmPage>>,
pub reply_sent: bool,
}
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).
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: Option<IntervalsTree<WasmPage>>
New allocations set for program if it has been changed.
reply_sent: bool
Whether this execution sent out a reply.
Implementations§
Source§impl DispatchResult
impl DispatchResult
Sourcepub fn message_id(&self) -> MessageId
pub fn message_id(&self) -> MessageId
Return dispatch message id.
Sourcepub fn program_id(&self) -> ProgramId
pub fn program_id(&self) -> ProgramId
Return program id.
Sourcepub fn message_source(&self) -> ProgramId
pub fn message_source(&self) -> ProgramId
Return dispatch source program id.
Sourcepub fn message_value(&self) -> u128
pub fn message_value(&self) -> u128
Return dispatch message value.
Sourcepub fn success(
dispatch: IncomingDispatch,
program_id: ProgramId,
gas_amount: GasAmount,
) -> Self
pub fn success( dispatch: IncomingDispatch, program_id: ProgramId, gas_amount: GasAmount, ) -> Self
Create partially initialized instance with the kind representing Success.
Auto Trait Implementations§
impl Freeze for DispatchResult
impl RefUnwindSafe for DispatchResult
impl Send for DispatchResult
impl Sync for DispatchResult
impl Unpin for DispatchResult
impl UnwindSafe for DispatchResult
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref