Enum core_processor::common::JournalNote
source · pub enum JournalNote {
Show 20 variants
MessageDispatched {
message_id: MessageId,
source: ProgramId,
outcome: DispatchOutcome,
},
GasBurned {
message_id: MessageId,
amount: u64,
},
ExitDispatch {
id_exited: ProgramId,
value_destination: ProgramId,
},
MessageConsumed(MessageId),
SendDispatch {
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
},
WaitDispatch {
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
},
WakeMessage {
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
},
UpdatePage {
program_id: ProgramId,
page_number: GearPage,
data: PageBuf,
},
UpdateAllocations {
program_id: ProgramId,
allocations: BTreeSet<WasmPage>,
},
SendValue {
from: ProgramId,
to: Option<ProgramId>,
value: u128,
},
StoreNewPrograms {
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
},
StopProcessing {
dispatch: StoredDispatch,
gas_burned: u64,
},
ReserveGas {
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
},
UnreserveGas {
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
},
UpdateGasReservations {
program_id: ProgramId,
reserver: GasReserver,
},
SystemReserveGas {
message_id: MessageId,
amount: u64,
},
SystemUnreserveGas {
message_id: MessageId,
},
SendSignal {
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
},
PayProgramRent {
payer: ProgramId,
program_id: ProgramId,
block_count: u32,
},
ReplyDeposit {
message_id: MessageId,
future_reply_id: MessageId,
amount: u64,
},
}
Expand description
Journal record for the state update.
Variants§
MessageDispatched
Fields
outcome: DispatchOutcome
Outcome of the processing.
Message was successfully dispatched.
GasBurned
Some gas was burned.
ExitDispatch
Fields
Exit the program.
MessageConsumed(MessageId)
Message was handled and no longer exists.
This should be the last update involving this message id.
SendDispatch
Fields
reservation: Option<ReservationId>
Whether use supply from reservation or current message.
Message was generated.
WaitDispatch
Fields
dispatch: StoredDispatch
Stored dispatch to be inserted into Waitlist.
waited_type: MessageWaitedType
If this message is waiting for its reincarnation.
Put this dispatch in the wait list.
WakeMessage
Fields
Wake particular message.
UpdatePage
Fields
Update page.
UpdateAllocations
Fields
Update allocations set note. And also removes data for pages which is not in allocations set now.
SendValue
Fields
Send value
StoreNewPrograms
Fields
Store programs requested by user to be initialized later
StopProcessing
Fields
dispatch: StoredDispatch
Pushes StoredDispatch back to the top of the queue.
Stop processing queue.
ReserveGas
Fields
reservation_id: ReservationId
Reservation ID
Reserve gas.
UnreserveGas
Fields
reservation_id: ReservationId
Reservation ID
Unreserve gas.
UpdateGasReservations
Fields
reserver: GasReserver
Map with reservations.
Update gas reservation map in program.
SystemReserveGas
Fields
Do system reservation.
SystemUnreserveGas
Do system unreservation in case it is created but not used.
SendSignal
Fields
code: SignalCode
Simple signal error.
Send signal.
PayProgramRent
Fields
Pay rent for the program.
ReplyDeposit
Fields
Create deposit for future reply.
Trait Implementations§
source§impl Clone for JournalNote
impl Clone for JournalNote
source§fn clone(&self) -> JournalNote
fn clone(&self) -> JournalNote
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for JournalNote
impl Send for JournalNote
impl Sync for JournalNote
impl Unpin for JournalNote
impl UnwindSafe for JournalNote
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
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
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read more§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.