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
Message was successfully dispatched.
Fields
outcome: DispatchOutcomeOutcome of the processing.
GasBurned
Some gas was burned.
ExitDispatch
Exit the program.
Fields
MessageConsumed(MessageId)
Message was handled and no longer exists.
This should be the last update involving this message id.
SendDispatch
Message was generated.
Fields
reservation: Option<ReservationId>Whether use supply from reservation or current message.
WaitDispatch
Put this dispatch in the wait list.
Fields
dispatch: StoredDispatchStored dispatch to be inserted into Waitlist.
waited_type: MessageWaitedTypeIf this message is waiting for its reincarnation.
WakeMessage
Wake particular message.
Fields
UpdatePage
Update page.
Fields
UpdateAllocations
Update allocations set note. And also removes data for pages which is not in allocations set now.
Fields
SendValue
Send value
Fields
StoreNewPrograms
Store programs requested by user to be initialized later
Fields
StopProcessing
Stop processing queue.
Fields
dispatch: StoredDispatchPushes StoredDispatch back to the top of the queue.
ReserveGas
Reserve gas.
Fields
reservation_id: ReservationIdReservation ID
UnreserveGas
Unreserve gas.
Fields
reservation_id: ReservationIdReservation ID
UpdateGasReservations
Update gas reservation map in program.
Fields
reserver: GasReserverMap with reservations.
SystemReserveGas
Do system reservation.
Fields
SystemUnreserveGas
Do system unreservation in case it is created but not used.
SendSignal
Send signal.
Fields
code: SignalCodeSimple signal error.
PayProgramRent
Pay rent for the program.
Fields
ReplyDeposit
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