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 more