pub enum JournalNote {
Show 19 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: IntervalsTree<WasmPage>,
},
SendValue {
from: ProgramId,
to: Option<ProgramId>,
value: u128,
},
StoreNewPrograms {
program_id: ProgramId,
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,
},
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: DispatchOutcome
Outcome 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: StoredDispatch
Stored dispatch to be inserted into Waitlist.
waited_type: MessageWaitedType
If 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
allocations: IntervalsTree<WasmPage>
New allocations set for the program.
SendValue
Send value
Fields
StoreNewPrograms
Store programs requested by user to be initialized later
Fields
StopProcessing
Stop processing queue.
Fields
dispatch: StoredDispatch
Pushes StoredDispatch back to the top of the queue.
ReserveGas
Reserve gas.
Fields
reservation_id: ReservationId
Reservation ID
UnreserveGas
Unreserve gas.
Fields
reservation_id: ReservationId
Reservation ID
UpdateGasReservations
Update gas reservation map in program.
Fields
reserver: GasReserver
Map with reservations.
SystemReserveGas
Do system reservation.
Fields
SystemUnreserveGas
Do system unreservation in case it is created but not used.
SendSignal
Send signal.
Fields
code: SignalCode
Simple signal error.
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 moreSource§impl Debug for JournalNote
impl Debug for JournalNote
Source§impl Decode for JournalNote
impl Decode for JournalNote
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Source§impl Encode for JournalNote
impl Encode for JournalNote
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
impl EncodeLike for JournalNote
Auto Trait Implementations§
impl Freeze for JournalNote
impl RefUnwindSafe for JournalNote
impl Send for JournalNote
impl Sync for JournalNote
impl Unpin for JournalNote
impl UnwindSafe for JournalNote
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
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>
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>
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)
&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)
&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>
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>
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>
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
unchecked_from
.