Struct gear_common::auxiliary::mailbox::MailboxStorageWrap
source · pub struct MailboxStorageWrap;
Expand description
Mailbox
double storage map manager.
Trait Implementations§
source§impl CountedByKey for MailboxStorageWrap
impl CountedByKey for MailboxStorageWrap
source§impl DoubleMapStorage for MailboxStorageWrap
impl DoubleMapStorage for MailboxStorageWrap
source§fn contains_keys(key1: &Self::Key1, key2: &Self::Key2) -> bool
fn contains_keys(key1: &Self::Key1, key2: &Self::Key2) -> bool
source§fn get(key1: &Self::Key1, key2: &Self::Key2) -> Option<Self::Value>
fn get(key1: &Self::Key1, key2: &Self::Key2) -> Option<Self::Value>
Trait Implementations§
source§impl CountedByKey for MailboxStorageWrap
impl CountedByKey for MailboxStorageWrap
source§impl DoubleMapStorage for MailboxStorageWrap
impl DoubleMapStorage for MailboxStorageWrap
§type Value = (UserStoredMessage, Interval<u32>)
type Value = (UserStoredMessage, Interval<u32>)
source§fn contains_keys(key1: &Self::Key1, key2: &Self::Key2) -> bool
fn contains_keys(key1: &Self::Key1, key2: &Self::Key2) -> bool
source§fn get(key1: &Self::Key1, key2: &Self::Key2) -> Option<Self::Value>
fn get(key1: &Self::Key1, key2: &Self::Key2) -> Option<Self::Value>
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
Auto Trait Implementations§
impl Freeze for MailboxStorageWrap
impl RefUnwindSafe for MailboxStorageWrap
impl Send for MailboxStorageWrap
impl Sync for MailboxStorageWrap
impl Unpin for MailboxStorageWrap
impl UnwindSafe for MailboxStorageWrap
Blanket Implementations§
source§impl<T> Any for Twhere
+) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
impl<T> Any for Twhere
+) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
Self::mutate
, but triggers if value present.source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
Auto Trait Implementations§
impl Freeze for MailboxStorageWrap
impl RefUnwindSafe for MailboxStorageWrap
impl Send for MailboxStorageWrap
impl Sync for MailboxStorageWrap
impl Unpin for MailboxStorageWrap
impl UnwindSafe for MailboxStorageWrap
Blanket Implementations§
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
diff --git a/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html b/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html
index 1ecb9f12593..cf2dfd7c396 100644
--- a/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html
+++ b/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html
@@ -1,2 +1,2 @@
-MailboxedMessage in gear_common::auxiliary::mailbox - Rust Type Alias gear_common::auxiliary::mailbox::MailboxedMessage
source · pub type MailboxedMessage = UserStoredMessage;
Expand description
Type represents message stored in the mailbox.
+MailboxedMessage in gear_common::auxiliary::mailbox - Rust Type Alias gear_common::auxiliary::mailbox::MailboxedMessage
source · pub type MailboxedMessage = UserStoredMessage;
Expand description
Type represents message stored in the mailbox.
Aliased Type§
struct MailboxedMessage { /* private fields */ }
\ No newline at end of file
diff --git a/pr-4132/gear_common/code_storage/trait.CodeStorage.html b/pr-4132/gear_common/code_storage/trait.CodeStorage.html
index a8724f29033..c0d71306da5 100644
--- a/pr-4132/gear_common/code_storage/trait.CodeStorage.html
+++ b/pr-4132/gear_common/code_storage/trait.CodeStorage.html
@@ -1,5 +1,5 @@
CodeStorage in gear_common::code_storage - Rust Trait gear_common::code_storage::CodeStorage
source · pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -7,19 +7,19 @@
// Provided methods
fn reset() { ... }
fn add_code(
- code_and_id: CodeAndId,
+ code_and_id: CodeAndId,
metadata: CodeMetadata,
) -> Result<(), Error> { ... }
- fn update_code(code_and_id: InstrumentedCodeAndId) { ... }
+ fn update_code(code_and_id: InstrumentedCodeAndId) { ... }
fn exists(code_id: CodeId) -> bool { ... }
fn remove_code(code_id: CodeId) -> bool { ... }
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { ... }
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { ... }
fn get_code_len(code_id: CodeId) -> Option<u32> { ... }
fn get_original_code(code_id: CodeId) -> Option<Vec<u8>> { ... }
fn get_metadata(code_id: CodeId) -> Option<CodeMetadata> { ... }
}
Expand description
Trait to work with program binary codes in a storage.
-Required Associated Types§
sourcetype InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>
sourcetype InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>
sourcetype OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>
sourcetype MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>
Provided Methods§
sourcefn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error>
sourcefn update_code(code_and_id: InstrumentedCodeAndId)
Update the corresponding code in the storage.
+Required Associated Types§
sourcetype InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>
sourcetype InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>
sourcetype OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>
sourcetype MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>
Provided Methods§
sourcefn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error>
sourcefn update_code(code_and_id: InstrumentedCodeAndId)
Update the corresponding code in the storage.
sourcefn exists(code_id: CodeId) -> bool
sourcefn remove_code(code_id: CodeId) -> bool
Returns true if the code associated with given id was removed.
If there is no code for the given id then false is returned.
-sourcefn get_code(code_id: CodeId) -> Option<InstrumentedCode>
sourcefn get_code_len(code_id: CodeId) -> Option<u32>
sourcefn get_original_code(code_id: CodeId) -> Option<Vec<u8>>
sourcefn get_metadata(code_id: CodeId) -> Option<CodeMetadata>
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+sourcefn get_code(code_id: CodeId) -> Option<InstrumentedCode>
sourcefn get_code_len(code_id: CodeId) -> Option<u32>
sourcefn get_original_code(code_id: CodeId) -> Option<Vec<u8>>
sourcefn get_metadata(code_id: CodeId) -> Option<CodeMetadata>
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/enum.LockId.html b/pr-4132/gear_common/enum.LockId.html
index 4f47a136aa1..3b9c7ddca0c 100644
--- a/pr-4132/gear_common/enum.LockId.html
+++ b/pr-4132/gear_common/enum.LockId.html
@@ -1,4 +1,4 @@
-LockId in gear_common - Rust Enum gear_common::LockId
#[repr(u8)]pub enum LockId {
+LockId in gear_common - Rust Enum gear_common::LockId
source · #[repr(u8)]pub enum LockId {
Mailbox = 0,
Waitlist = 1,
Reservation = 2,
@@ -8,8 +8,8 @@
§Waitlist = 1
The gas lock is provided by the waitlist.
§Reservation = 2
The gas lock is provided by reservation.
§DispatchStash = 3
The gas lock is provided by dispatch stash.
-
Trait Implementations§
§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
§impl Copy for LockId
§impl Eq for LockId
§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
Trait Implementations§
source§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
source§impl Copy for LockId
source§impl Eq for LockId
source§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/enum.Program.html b/pr-4132/gear_common/enum.Program.html
index 48d732f13bb..af006d91c3a 100644
--- a/pr-4132/gear_common/enum.Program.html
+++ b/pr-4132/gear_common/enum.Program.html
@@ -1,4 +1,4 @@
-Program in gear_common - Rust Enum gear_common::Program
pub enum Program<BlockNumber>where
+Program in gear_common - Rust Enum gear_common::Program
source · pub enum Program<BlockNumber>where
BlockNumber: Copy,{
Active(ActiveProgram<BlockNumber>),
Exited(ActorId),
@@ -7,16 +7,16 @@
Variants§
§Active(ActiveProgram<BlockNumber>)
Program in active state.
§Exited(ActorId)
Program has been exited (gr_exit was called)
§Terminated(ActorId)
Program has been terminated (init
was failed)
-Implementations§
§impl<BlockNumber> Program<BlockNumber>where
- BlockNumber: Copy,
pub fn is_terminated(&self) -> bool
Returns whether the program is terminated.
-pub fn is_initialized(&self) -> bool
Returns whether the program is active and initialized.
-Trait Implementations§
Implementations§
source§impl<BlockNumber> Program<BlockNumber>where
+ BlockNumber: Copy,
sourcepub fn is_terminated(&self) -> bool
Returns whether the program is terminated.
+sourcepub fn is_initialized(&self) -> bool
Returns whether the program is active and initialized.
+Trait Implementations§
source§impl<BlockNumber> Decode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Decode,
§fn decode<__CodecInputEdqy>(
+ ActiveProgram<BlockNumber>: Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Program<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -24,24 +24,24 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for Program<BlockNumber>where
+ I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
§fn encode_to<__CodecOutputEdqy>(
+ ActiveProgram<BlockNumber>: Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.
source§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
BlockNumber: Copy + TypeInfo + 'static,
- ActiveProgram<BlockNumber>: TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
§impl<BlockNumber> Eq for Program<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: Encode,
source§impl<BlockNumber> Eq for Program<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for Program<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for Program<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for Program<BlockNumber>where
diff --git a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
index f998d51382e..b04b5dbbb40 100644
--- a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
+++ b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
@@ -21,7 +21,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§impl PartialEq for MessageWaitedRuntimeReason
source§fn eq(&self, other: &MessageWaitedRuntimeReason) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§fn from(src: MessageWaitedType) -> Self
Converts to this type from the input type.source§impl RuntimeReason for MessageWaitedRuntimeReason
source§fn into_reason<S: SystemReason>(self) -> Reason<Self, S>
Converter into composite reason type: not only runtime, but system also.source§impl TypeInfo for MessageWaitedRuntimeReason
source§impl EncodeLike for MessageWaitedRuntimeReason
source§impl Eq for MessageWaitedRuntimeReason
source§impl StructuralPartialEq for MessageWaitedRuntimeReason
Auto Trait Implementations§
§impl Freeze for MessageWaitedRuntimeReason
§impl RefUnwindSafe for MessageWaitedRuntimeReason
§impl Send for MessageWaitedRuntimeReason
§impl Sync for MessageWaitedRuntimeReason
§impl Unpin for MessageWaitedRuntimeReason
§impl UnwindSafe for MessageWaitedRuntimeReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/pr-4132/gear_common/gas_provider/enum.LockId.html b/pr-4132/gear_common/gas_provider/enum.LockId.html
index ac2af343449..8a6bf445930 100644
--- a/pr-4132/gear_common/gas_provider/enum.LockId.html
+++ b/pr-4132/gear_common/gas_provider/enum.LockId.html
@@ -1,4 +1,4 @@
-LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
source · #[repr(u8)]pub enum LockId {
Mailbox = 0,
Waitlist = 1,
Reservation = 2,
@@ -8,8 +8,8 @@
§Waitlist = 1
The gas lock is provided by the waitlist.
§Reservation = 2
The gas lock is provided by reservation.
§DispatchStash = 3
The gas lock is provided by dispatch stash.
-
Trait Implementations§
§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
§impl Copy for LockId
§impl Eq for LockId
§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
Trait Implementations§
source§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
source§impl Copy for LockId
source§impl Eq for LockId
source§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
index fba6676ea3c..3916a913113 100644
--- a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
+++ b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
@@ -5,7 +5,7 @@
type AccountId: Eq + PartialEq;
type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>;
type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
Show 16 methods
// Required method
fn pages_final_prefix() -> [u8; 32];
@@ -28,10 +28,10 @@
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
) { ... }
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
fn set_allocations(
program_id: ProgramId,
- allocations: IntervalsTree<WasmPage>,
+ allocations: IntervalsTree<WasmPage>,
) { ... }
fn clear_allocations(program_id: ProgramId) { ... }
fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix> { ... }
@@ -57,7 +57,7 @@
) { ... }
fn clear_program_memory(program_id: ProgramId, memory_infix: MemoryInfix) { ... }
}Expand description
Trait to work with program data in a storage.
-Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
+Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
Provided Methods§
sourcefn add_program(
program_id: ProgramId,
@@ -74,7 +74,7 @@
program_id: ProgramId,
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
-)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
+)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html b/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html
index 1ecb9f12593..cf2dfd7c396 100644
--- a/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html
+++ b/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html
@@ -1,2 +1,2 @@
-MailboxedMessage in gear_common::auxiliary::mailbox - Rust Type Alias gear_common::auxiliary::mailbox::MailboxedMessage
source · pub type MailboxedMessage = UserStoredMessage;
Expand description
Type represents message stored in the mailbox.
+MailboxedMessage in gear_common::auxiliary::mailbox - Rust Type Alias gear_common::auxiliary::mailbox::MailboxedMessage
source · pub type MailboxedMessage = UserStoredMessage;
Expand description
Type represents message stored in the mailbox.
Aliased Type§
struct MailboxedMessage { /* private fields */ }
\ No newline at end of file
diff --git a/pr-4132/gear_common/code_storage/trait.CodeStorage.html b/pr-4132/gear_common/code_storage/trait.CodeStorage.html
index a8724f29033..c0d71306da5 100644
--- a/pr-4132/gear_common/code_storage/trait.CodeStorage.html
+++ b/pr-4132/gear_common/code_storage/trait.CodeStorage.html
@@ -1,5 +1,5 @@
CodeStorage in gear_common::code_storage - Rust Trait gear_common::code_storage::CodeStorage
source · pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -7,19 +7,19 @@
// Provided methods
fn reset() { ... }
fn add_code(
- code_and_id: CodeAndId,
+ code_and_id: CodeAndId,
metadata: CodeMetadata,
) -> Result<(), Error> { ... }
- fn update_code(code_and_id: InstrumentedCodeAndId) { ... }
+ fn update_code(code_and_id: InstrumentedCodeAndId) { ... }
fn exists(code_id: CodeId) -> bool { ... }
fn remove_code(code_id: CodeId) -> bool { ... }
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { ... }
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { ... }
fn get_code_len(code_id: CodeId) -> Option<u32> { ... }
fn get_original_code(code_id: CodeId) -> Option<Vec<u8>> { ... }
fn get_metadata(code_id: CodeId) -> Option<CodeMetadata> { ... }
}
Expand description
Trait to work with program binary codes in a storage.
-Required Associated Types§
sourcetype InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>
sourcetype InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>
sourcetype OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>
sourcetype MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>
Provided Methods§
sourcefn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error>
sourcefn update_code(code_and_id: InstrumentedCodeAndId)
Update the corresponding code in the storage.
+Required Associated Types§
sourcetype InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>
sourcetype InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>
sourcetype OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>
sourcetype MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>
Provided Methods§
sourcefn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error>
sourcefn update_code(code_and_id: InstrumentedCodeAndId)
Update the corresponding code in the storage.
sourcefn exists(code_id: CodeId) -> bool
sourcefn remove_code(code_id: CodeId) -> bool
Returns true if the code associated with given id was removed.
If there is no code for the given id then false is returned.
-sourcefn get_code(code_id: CodeId) -> Option<InstrumentedCode>
sourcefn get_code_len(code_id: CodeId) -> Option<u32>
sourcefn get_original_code(code_id: CodeId) -> Option<Vec<u8>>
sourcefn get_metadata(code_id: CodeId) -> Option<CodeMetadata>
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+sourcefn get_code(code_id: CodeId) -> Option<InstrumentedCode>
sourcefn get_code_len(code_id: CodeId) -> Option<u32>
sourcefn get_original_code(code_id: CodeId) -> Option<Vec<u8>>
sourcefn get_metadata(code_id: CodeId) -> Option<CodeMetadata>
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/enum.LockId.html b/pr-4132/gear_common/enum.LockId.html
index 4f47a136aa1..3b9c7ddca0c 100644
--- a/pr-4132/gear_common/enum.LockId.html
+++ b/pr-4132/gear_common/enum.LockId.html
@@ -1,4 +1,4 @@
-LockId in gear_common - Rust Enum gear_common::LockId
#[repr(u8)]pub enum LockId {
+LockId in gear_common - Rust Enum gear_common::LockId
source · #[repr(u8)]pub enum LockId {
Mailbox = 0,
Waitlist = 1,
Reservation = 2,
@@ -8,8 +8,8 @@
§Waitlist = 1
The gas lock is provided by the waitlist.
§Reservation = 2
The gas lock is provided by reservation.
§DispatchStash = 3
The gas lock is provided by dispatch stash.
-
Trait Implementations§
§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
§impl Copy for LockId
§impl Eq for LockId
§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
Trait Implementations§
source§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
source§impl Copy for LockId
source§impl Eq for LockId
source§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/enum.Program.html b/pr-4132/gear_common/enum.Program.html
index 48d732f13bb..af006d91c3a 100644
--- a/pr-4132/gear_common/enum.Program.html
+++ b/pr-4132/gear_common/enum.Program.html
@@ -1,4 +1,4 @@
-Program in gear_common - Rust Enum gear_common::Program
pub enum Program<BlockNumber>where
+Program in gear_common - Rust Enum gear_common::Program
source · pub enum Program<BlockNumber>where
BlockNumber: Copy,{
Active(ActiveProgram<BlockNumber>),
Exited(ActorId),
@@ -7,16 +7,16 @@
Variants§
§Active(ActiveProgram<BlockNumber>)
Program in active state.
§Exited(ActorId)
Program has been exited (gr_exit was called)
§Terminated(ActorId)
Program has been terminated (init
was failed)
-Implementations§
§impl<BlockNumber> Program<BlockNumber>where
- BlockNumber: Copy,
pub fn is_terminated(&self) -> bool
Returns whether the program is terminated.
-pub fn is_initialized(&self) -> bool
Returns whether the program is active and initialized.
-Trait Implementations§
Implementations§
source§impl<BlockNumber> Program<BlockNumber>where
+ BlockNumber: Copy,
sourcepub fn is_terminated(&self) -> bool
Returns whether the program is terminated.
+sourcepub fn is_initialized(&self) -> bool
Returns whether the program is active and initialized.
+Trait Implementations§
source§impl<BlockNumber> Decode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Decode,
§fn decode<__CodecInputEdqy>(
+ ActiveProgram<BlockNumber>: Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Program<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -24,24 +24,24 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for Program<BlockNumber>where
+ I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
§fn encode_to<__CodecOutputEdqy>(
+ ActiveProgram<BlockNumber>: Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.
source§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
BlockNumber: Copy + TypeInfo + 'static,
- ActiveProgram<BlockNumber>: TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
§impl<BlockNumber> Eq for Program<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: Encode,
source§impl<BlockNumber> Eq for Program<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for Program<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for Program<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for Program<BlockNumber>where
diff --git a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
index f998d51382e..b04b5dbbb40 100644
--- a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
+++ b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
@@ -21,7 +21,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§impl PartialEq for MessageWaitedRuntimeReason
source§fn eq(&self, other: &MessageWaitedRuntimeReason) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§fn from(src: MessageWaitedType) -> Self
Converts to this type from the input type.source§impl RuntimeReason for MessageWaitedRuntimeReason
source§fn into_reason<S: SystemReason>(self) -> Reason<Self, S>
Converter into composite reason type: not only runtime, but system also.source§impl TypeInfo for MessageWaitedRuntimeReason
source§impl EncodeLike for MessageWaitedRuntimeReason
source§impl Eq for MessageWaitedRuntimeReason
source§impl StructuralPartialEq for MessageWaitedRuntimeReason
Auto Trait Implementations§
§impl Freeze for MessageWaitedRuntimeReason
§impl RefUnwindSafe for MessageWaitedRuntimeReason
§impl Send for MessageWaitedRuntimeReason
§impl Sync for MessageWaitedRuntimeReason
§impl Unpin for MessageWaitedRuntimeReason
§impl UnwindSafe for MessageWaitedRuntimeReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/pr-4132/gear_common/gas_provider/enum.LockId.html b/pr-4132/gear_common/gas_provider/enum.LockId.html
index ac2af343449..8a6bf445930 100644
--- a/pr-4132/gear_common/gas_provider/enum.LockId.html
+++ b/pr-4132/gear_common/gas_provider/enum.LockId.html
@@ -1,4 +1,4 @@
-LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
source · #[repr(u8)]pub enum LockId {
Mailbox = 0,
Waitlist = 1,
Reservation = 2,
@@ -8,8 +8,8 @@
§Waitlist = 1
The gas lock is provided by the waitlist.
§Reservation = 2
The gas lock is provided by reservation.
§DispatchStash = 3
The gas lock is provided by dispatch stash.
-
Trait Implementations§
§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
§impl Copy for LockId
§impl Eq for LockId
§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
Trait Implementations§
source§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
source§impl Copy for LockId
source§impl Eq for LockId
source§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
index fba6676ea3c..3916a913113 100644
--- a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
+++ b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
@@ -5,7 +5,7 @@
type AccountId: Eq + PartialEq;
type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>;
type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
Show 16 methods
// Required method
fn pages_final_prefix() -> [u8; 32];
@@ -28,10 +28,10 @@
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
) { ... }
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
fn set_allocations(
program_id: ProgramId,
- allocations: IntervalsTree<WasmPage>,
+ allocations: IntervalsTree<WasmPage>,
) { ... }
fn clear_allocations(program_id: ProgramId) { ... }
fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix> { ... }
@@ -57,7 +57,7 @@
) { ... }
fn clear_program_memory(program_id: ProgramId, memory_infix: MemoryInfix) { ... }
}Expand description
Trait to work with program data in a storage.
-Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
+Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
Provided Methods§
sourcefn add_program(
program_id: ProgramId,
@@ -74,7 +74,7 @@
program_id: ProgramId,
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
-)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
+)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
Type Alias gear_common::auxiliary::mailbox::MailboxedMessage
source · pub type MailboxedMessage = UserStoredMessage;
Expand description
Type represents message stored in the mailbox.
+Type Alias gear_common::auxiliary::mailbox::MailboxedMessage
source · pub type MailboxedMessage = UserStoredMessage;
Expand description
Type represents message stored in the mailbox.
Aliased Type§
struct MailboxedMessage { /* private fields */ }
Trait gear_common::code_storage::CodeStorage
source · pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -7,19 +7,19 @@
// Provided methods
fn reset() { ... }
fn add_code(
- code_and_id: CodeAndId,
+ code_and_id: CodeAndId,
metadata: CodeMetadata,
) -> Result<(), Error> { ... }
- fn update_code(code_and_id: InstrumentedCodeAndId) { ... }
+ fn update_code(code_and_id: InstrumentedCodeAndId) { ... }
fn exists(code_id: CodeId) -> bool { ... }
fn remove_code(code_id: CodeId) -> bool { ... }
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { ... }
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { ... }
fn get_code_len(code_id: CodeId) -> Option<u32> { ... }
fn get_original_code(code_id: CodeId) -> Option<Vec<u8>> { ... }
fn get_metadata(code_id: CodeId) -> Option<CodeMetadata> { ... }
}
Expand description
Trait to work with program binary codes in a storage.
-Required Associated Types§
type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>
Provided Methods§
fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error>
sourcefn update_code(code_and_id: InstrumentedCodeAndId)
fn update_code(code_and_id: InstrumentedCodeAndId)
Update the corresponding code in the storage.
+Required Associated Types§
type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>
Provided Methods§
fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error>
sourcefn update_code(code_and_id: InstrumentedCodeAndId)
fn update_code(code_and_id: InstrumentedCodeAndId)
Update the corresponding code in the storage.
fn exists(code_id: CodeId) -> bool
sourcefn remove_code(code_id: CodeId) -> bool
fn remove_code(code_id: CodeId) -> bool
Returns true if the code associated with given id was removed.
If there is no code for the given id then false is returned.
-fn get_code(code_id: CodeId) -> Option<InstrumentedCode>
fn get_code_len(code_id: CodeId) -> Option<u32>
fn get_original_code(code_id: CodeId) -> Option<Vec<u8>>
fn get_metadata(code_id: CodeId) -> Option<CodeMetadata>
Object Safety§
Implementors§
fn get_code(code_id: CodeId) -> Option<InstrumentedCode>
fn get_code_len(code_id: CodeId) -> Option<u32>
fn get_original_code(code_id: CodeId) -> Option<Vec<u8>>
fn get_metadata(code_id: CodeId) -> Option<CodeMetadata>
Object Safety§
Implementors§
Enum gear_common::LockId
#[repr(u8)]pub enum LockId {
+LockId in gear_common - Rust Enum gear_common::LockId
source · #[repr(u8)]pub enum LockId {
Mailbox = 0,
Waitlist = 1,
Reservation = 2,
@@ -8,8 +8,8 @@
§Waitlist = 1
The gas lock is provided by the waitlist.
§Reservation = 2
The gas lock is provided by reservation.
§DispatchStash = 3
The gas lock is provided by dispatch stash.
-
Trait Implementations§
§impl Sequence for LockId
impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
impl TryFrom<StorageType> for LockId
impl Copy for LockId
impl Eq for LockId
impl StructuralPartialEq for LockId
Auto Trait Implementations§
impl Freeze for LockId
impl RefUnwindSafe for LockId
impl Send for LockId
impl Sync for LockId
impl Unpin for LockId
impl UnwindSafe for LockId
Blanket Implementations§
Trait Implementations§
source§impl Sequence for LockId
impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
impl TryFrom<StorageType> for LockId
impl Copy for LockId
impl Eq for LockId
impl StructuralPartialEq for LockId
Auto Trait Implementations§
impl Freeze for LockId
impl RefUnwindSafe for LockId
impl Send for LockId
impl Sync for LockId
impl Unpin for LockId
impl UnwindSafe for LockId
Blanket Implementations§
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
diff --git a/pr-4132/gear_common/enum.Program.html b/pr-4132/gear_common/enum.Program.html
index 48d732f13bb..af006d91c3a 100644
--- a/pr-4132/gear_common/enum.Program.html
+++ b/pr-4132/gear_common/enum.Program.html
@@ -1,4 +1,4 @@
-Program in gear_common - Rust Enum gear_common::Program
pub enum Program<BlockNumber>where
+Program in gear_common - Rust Enum gear_common::Program
source · pub enum Program<BlockNumber>where
BlockNumber: Copy,{
Active(ActiveProgram<BlockNumber>),
Exited(ActorId),
@@ -7,16 +7,16 @@
Variants§
§Active(ActiveProgram<BlockNumber>)
Program in active state.
§Exited(ActorId)
Program has been exited (gr_exit was called)
§Terminated(ActorId)
Program has been terminated (init
was failed)
-Implementations§
§impl<BlockNumber> Program<BlockNumber>where
- BlockNumber: Copy,
pub fn is_terminated(&self) -> bool
Returns whether the program is terminated.
-pub fn is_initialized(&self) -> bool
Returns whether the program is active and initialized.
-Trait Implementations§
Implementations§
source§impl<BlockNumber> Program<BlockNumber>where
+ BlockNumber: Copy,
sourcepub fn is_terminated(&self) -> bool
Returns whether the program is terminated.
+sourcepub fn is_initialized(&self) -> bool
Returns whether the program is active and initialized.
+Trait Implementations§
source§impl<BlockNumber> Decode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Decode,
§fn decode<__CodecInputEdqy>(
+ ActiveProgram<BlockNumber>: Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Program<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -24,24 +24,24 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for Program<BlockNumber>where
+ I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
§fn encode_to<__CodecOutputEdqy>(
+ ActiveProgram<BlockNumber>: Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.
source§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
BlockNumber: Copy + TypeInfo + 'static,
- ActiveProgram<BlockNumber>: TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
§impl<BlockNumber> Eq for Program<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: Encode,
source§impl<BlockNumber> Eq for Program<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for Program<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for Program<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for Program<BlockNumber>where
diff --git a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
index f998d51382e..b04b5dbbb40 100644
--- a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
+++ b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
@@ -21,7 +21,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§impl PartialEq for MessageWaitedRuntimeReason
source§fn eq(&self, other: &MessageWaitedRuntimeReason) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§fn from(src: MessageWaitedType) -> Self
Converts to this type from the input type.source§impl RuntimeReason for MessageWaitedRuntimeReason
source§fn into_reason<S: SystemReason>(self) -> Reason<Self, S>
Converter into composite reason type: not only runtime, but system also.source§impl TypeInfo for MessageWaitedRuntimeReason
source§impl EncodeLike for MessageWaitedRuntimeReason
source§impl Eq for MessageWaitedRuntimeReason
source§impl StructuralPartialEq for MessageWaitedRuntimeReason
Auto Trait Implementations§
§impl Freeze for MessageWaitedRuntimeReason
§impl RefUnwindSafe for MessageWaitedRuntimeReason
§impl Send for MessageWaitedRuntimeReason
§impl Sync for MessageWaitedRuntimeReason
§impl Unpin for MessageWaitedRuntimeReason
§impl UnwindSafe for MessageWaitedRuntimeReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/pr-4132/gear_common/gas_provider/enum.LockId.html b/pr-4132/gear_common/gas_provider/enum.LockId.html
index ac2af343449..8a6bf445930 100644
--- a/pr-4132/gear_common/gas_provider/enum.LockId.html
+++ b/pr-4132/gear_common/gas_provider/enum.LockId.html
@@ -1,4 +1,4 @@
-LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
source · #[repr(u8)]pub enum LockId {
Mailbox = 0,
Waitlist = 1,
Reservation = 2,
@@ -8,8 +8,8 @@
§Waitlist = 1
The gas lock is provided by the waitlist.
§Reservation = 2
The gas lock is provided by reservation.
§DispatchStash = 3
The gas lock is provided by dispatch stash.
-
Trait Implementations§
§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
§impl Copy for LockId
§impl Eq for LockId
§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
Trait Implementations§
source§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
source§impl Copy for LockId
source§impl Eq for LockId
source§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
index fba6676ea3c..3916a913113 100644
--- a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
+++ b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
@@ -5,7 +5,7 @@
type AccountId: Eq + PartialEq;
type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>;
type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
Show 16 methods
// Required method
fn pages_final_prefix() -> [u8; 32];
@@ -28,10 +28,10 @@
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
) { ... }
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
fn set_allocations(
program_id: ProgramId,
- allocations: IntervalsTree<WasmPage>,
+ allocations: IntervalsTree<WasmPage>,
) { ... }
fn clear_allocations(program_id: ProgramId) { ... }
fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix> { ... }
@@ -57,7 +57,7 @@
) { ... }
fn clear_program_memory(program_id: ProgramId, memory_infix: MemoryInfix) { ... }
}Expand description
Trait to work with program data in a storage.
-Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
+Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
Provided Methods§
sourcefn add_program(
program_id: ProgramId,
@@ -74,7 +74,7 @@
program_id: ProgramId,
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
-)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
+)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/enum.Program.html b/pr-4132/gear_common/enum.Program.html
index 48d732f13bb..af006d91c3a 100644
--- a/pr-4132/gear_common/enum.Program.html
+++ b/pr-4132/gear_common/enum.Program.html
@@ -1,4 +1,4 @@
-Program in gear_common - Rust Enum gear_common::Program
pub enum Program<BlockNumber>where
+Program in gear_common - Rust Enum gear_common::Program
source · pub enum Program<BlockNumber>where
BlockNumber: Copy,{
Active(ActiveProgram<BlockNumber>),
Exited(ActorId),
@@ -7,16 +7,16 @@
Variants§
§Active(ActiveProgram<BlockNumber>)
Program in active state.
§Exited(ActorId)
Program has been exited (gr_exit was called)
§Terminated(ActorId)
Program has been terminated (init
was failed)
-Implementations§
§impl<BlockNumber> Program<BlockNumber>where
- BlockNumber: Copy,
pub fn is_terminated(&self) -> bool
Returns whether the program is terminated.
-pub fn is_initialized(&self) -> bool
Returns whether the program is active and initialized.
-Trait Implementations§
Implementations§
source§impl<BlockNumber> Program<BlockNumber>where
+ BlockNumber: Copy,
sourcepub fn is_terminated(&self) -> bool
Returns whether the program is terminated.
+sourcepub fn is_initialized(&self) -> bool
Returns whether the program is active and initialized.
+Trait Implementations§
source§impl<BlockNumber> Decode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Decode,
§fn decode<__CodecInputEdqy>(
+ ActiveProgram<BlockNumber>: Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Program<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -24,24 +24,24 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for Program<BlockNumber>where
+ I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
§fn encode_to<__CodecOutputEdqy>(
+ ActiveProgram<BlockNumber>: Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.
source§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
BlockNumber: Copy + TypeInfo + 'static,
- ActiveProgram<BlockNumber>: TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
§impl<BlockNumber> Eq for Program<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: Encode,
source§impl<BlockNumber> Eq for Program<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for Program<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for Program<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for Program<BlockNumber>where
diff --git a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
index f998d51382e..b04b5dbbb40 100644
--- a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
+++ b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
@@ -21,7 +21,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§impl PartialEq for MessageWaitedRuntimeReason
source§fn eq(&self, other: &MessageWaitedRuntimeReason) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§fn from(src: MessageWaitedType) -> Self
Converts to this type from the input type.source§impl RuntimeReason for MessageWaitedRuntimeReason
source§fn into_reason<S: SystemReason>(self) -> Reason<Self, S>
Converter into composite reason type: not only runtime, but system also.source§impl TypeInfo for MessageWaitedRuntimeReason
source§impl EncodeLike for MessageWaitedRuntimeReason
source§impl Eq for MessageWaitedRuntimeReason
source§impl StructuralPartialEq for MessageWaitedRuntimeReason
Auto Trait Implementations§
§impl Freeze for MessageWaitedRuntimeReason
§impl RefUnwindSafe for MessageWaitedRuntimeReason
§impl Send for MessageWaitedRuntimeReason
§impl Sync for MessageWaitedRuntimeReason
§impl Unpin for MessageWaitedRuntimeReason
§impl UnwindSafe for MessageWaitedRuntimeReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/pr-4132/gear_common/gas_provider/enum.LockId.html b/pr-4132/gear_common/gas_provider/enum.LockId.html
index ac2af343449..8a6bf445930 100644
--- a/pr-4132/gear_common/gas_provider/enum.LockId.html
+++ b/pr-4132/gear_common/gas_provider/enum.LockId.html
@@ -1,4 +1,4 @@
-LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
source · #[repr(u8)]pub enum LockId {
Mailbox = 0,
Waitlist = 1,
Reservation = 2,
@@ -8,8 +8,8 @@
§Waitlist = 1
The gas lock is provided by the waitlist.
§Reservation = 2
The gas lock is provided by reservation.
§DispatchStash = 3
The gas lock is provided by dispatch stash.
-
Trait Implementations§
§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
§impl Copy for LockId
§impl Eq for LockId
§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
Trait Implementations§
source§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
source§impl Copy for LockId
source§impl Eq for LockId
source§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
index fba6676ea3c..3916a913113 100644
--- a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
+++ b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
@@ -5,7 +5,7 @@
type AccountId: Eq + PartialEq;
type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>;
type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
Show 16 methods
// Required method
fn pages_final_prefix() -> [u8; 32];
@@ -28,10 +28,10 @@
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
) { ... }
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
fn set_allocations(
program_id: ProgramId,
- allocations: IntervalsTree<WasmPage>,
+ allocations: IntervalsTree<WasmPage>,
) { ... }
fn clear_allocations(program_id: ProgramId) { ... }
fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix> { ... }
@@ -57,7 +57,7 @@
) { ... }
fn clear_program_memory(program_id: ProgramId, memory_infix: MemoryInfix) { ... }
}Expand description
Trait to work with program data in a storage.
-Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
+Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
Provided Methods§
sourcefn add_program(
program_id: ProgramId,
@@ -74,7 +74,7 @@
program_id: ProgramId,
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
-)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
+)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
Enum gear_common::Program
pub enum Program<BlockNumber>where
+Program in gear_common - Rust Enum gear_common::Program
source · pub enum Program<BlockNumber>where
BlockNumber: Copy,{
Active(ActiveProgram<BlockNumber>),
Exited(ActorId),
@@ -7,16 +7,16 @@
Variants§
§Active(ActiveProgram<BlockNumber>)
Program in active state.
§Exited(ActorId)
Program has been exited (gr_exit was called)
§Terminated(ActorId)
Program has been terminated (init
was failed)
-Implementations§
§impl<BlockNumber> Program<BlockNumber>where
- BlockNumber: Copy,
pub fn is_terminated(&self) -> bool
Returns whether the program is terminated.
-pub fn is_initialized(&self) -> bool
Returns whether the program is active and initialized.
-Trait Implementations§
Implementations§
source§impl<BlockNumber> Program<BlockNumber>where
+ BlockNumber: Copy,
sourcepub fn is_terminated(&self) -> bool
Returns whether the program is terminated.
+sourcepub fn is_initialized(&self) -> bool
Returns whether the program is active and initialized.
+Trait Implementations§
source§impl<BlockNumber> Decode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Decode,
§fn decode<__CodecInputEdqy>(
+ ActiveProgram<BlockNumber>: Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Program<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -24,24 +24,24 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for Program<BlockNumber>where
+ I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
§fn encode_to<__CodecOutputEdqy>(
+ ActiveProgram<BlockNumber>: Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.
source§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
BlockNumber: Copy + TypeInfo + 'static,
- ActiveProgram<BlockNumber>: TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
§impl<BlockNumber> Eq for Program<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: Encode,
source§impl<BlockNumber> Eq for Program<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
impl<BlockNumber> Freeze for Program<BlockNumber>where
BlockNumber: Freeze,
impl<BlockNumber> RefUnwindSafe for Program<BlockNumber>where
BlockNumber: RefUnwindSafe,
impl<BlockNumber> Send for Program<BlockNumber>where
diff --git a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
index f998d51382e..b04b5dbbb40 100644
--- a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
+++ b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html
@@ -21,7 +21,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§impl PartialEq for MessageWaitedRuntimeReason
source§fn eq(&self, other: &MessageWaitedRuntimeReason) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§fn from(src: MessageWaitedType) -> Self
Converts to this type from the input type.source§impl RuntimeReason for MessageWaitedRuntimeReason
source§fn into_reason<S: SystemReason>(self) -> Reason<Self, S>
Converter into composite reason type: not only runtime, but system also.source§impl TypeInfo for MessageWaitedRuntimeReason
source§impl EncodeLike for MessageWaitedRuntimeReason
source§impl Eq for MessageWaitedRuntimeReason
source§impl StructuralPartialEq for MessageWaitedRuntimeReason
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§impl PartialEq for MessageWaitedRuntimeReason
impl PartialEq for MessageWaitedRuntimeReason
source§fn eq(&self, other: &MessageWaitedRuntimeReason) -> bool
fn eq(&self, other: &MessageWaitedRuntimeReason) -> bool
self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl From<MessageWaitedType> for MessageWaitedRuntimeReason
impl From<MessageWaitedType> for MessageWaitedRuntimeReason
source§fn from(src: MessageWaitedType) -> Self
fn from(src: MessageWaitedType) -> Self
source§impl RuntimeReason for MessageWaitedRuntimeReason
impl RuntimeReason for MessageWaitedRuntimeReason
source§fn into_reason<S: SystemReason>(self) -> Reason<Self, S>
fn into_reason<S: SystemReason>(self) -> Reason<Self, S>
source§impl TypeInfo for MessageWaitedRuntimeReason
impl TypeInfo for MessageWaitedRuntimeReason
impl EncodeLike for MessageWaitedRuntimeReason
impl Eq for MessageWaitedRuntimeReason
impl StructuralPartialEq for MessageWaitedRuntimeReason
Auto Trait Implementations§
impl Freeze for MessageWaitedRuntimeReason
impl RefUnwindSafe for MessageWaitedRuntimeReason
impl Send for MessageWaitedRuntimeReason
impl Sync for MessageWaitedRuntimeReason
impl Unpin for MessageWaitedRuntimeReason
impl UnwindSafe for MessageWaitedRuntimeReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/pr-4132/gear_common/gas_provider/enum.LockId.html b/pr-4132/gear_common/gas_provider/enum.LockId.html
index ac2af343449..8a6bf445930 100644
--- a/pr-4132/gear_common/gas_provider/enum.LockId.html
+++ b/pr-4132/gear_common/gas_provider/enum.LockId.html
@@ -1,4 +1,4 @@
-LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
source · #[repr(u8)]pub enum LockId {
Mailbox = 0,
Waitlist = 1,
Reservation = 2,
@@ -8,8 +8,8 @@
§Waitlist = 1
The gas lock is provided by the waitlist.
§Reservation = 2
The gas lock is provided by reservation.
§DispatchStash = 3
The gas lock is provided by dispatch stash.
-
Trait Implementations§
§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
§impl Copy for LockId
§impl Eq for LockId
§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
Trait Implementations§
source§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
source§impl Copy for LockId
source§impl Eq for LockId
source§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
index fba6676ea3c..3916a913113 100644
--- a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
+++ b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
@@ -5,7 +5,7 @@
type AccountId: Eq + PartialEq;
type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>;
type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
Show 16 methods
// Required method
fn pages_final_prefix() -> [u8; 32];
@@ -28,10 +28,10 @@
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
) { ... }
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
fn set_allocations(
program_id: ProgramId,
- allocations: IntervalsTree<WasmPage>,
+ allocations: IntervalsTree<WasmPage>,
) { ... }
fn clear_allocations(program_id: ProgramId) { ... }
fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix> { ... }
@@ -57,7 +57,7 @@
) { ... }
fn clear_program_memory(program_id: ProgramId, memory_infix: MemoryInfix) { ... }
}Expand description
Trait to work with program data in a storage.
-Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
+Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
Provided Methods§
sourcefn add_program(
program_id: ProgramId,
@@ -74,7 +74,7 @@
program_id: ProgramId,
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
-)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
+)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
impl<T> BorrowMut<T> for Twhere
diff --git a/pr-4132/gear_common/gas_provider/enum.LockId.html b/pr-4132/gear_common/gas_provider/enum.LockId.html
index ac2af343449..8a6bf445930 100644
--- a/pr-4132/gear_common/gas_provider/enum.LockId.html
+++ b/pr-4132/gear_common/gas_provider/enum.LockId.html
@@ -1,4 +1,4 @@
-LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
source · #[repr(u8)]pub enum LockId {
Mailbox = 0,
Waitlist = 1,
Reservation = 2,
@@ -8,8 +8,8 @@
§Waitlist = 1
The gas lock is provided by the waitlist.
§Reservation = 2
The gas lock is provided by reservation.
§DispatchStash = 3
The gas lock is provided by dispatch stash.
-
Trait Implementations§
§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
§impl Copy for LockId
§impl Eq for LockId
§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
Trait Implementations§
source§impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
source§impl Copy for LockId
source§impl Eq for LockId
source§impl StructuralPartialEq for LockId
Auto Trait Implementations§
§impl Freeze for LockId
§impl RefUnwindSafe for LockId
§impl Send for LockId
§impl Sync for LockId
§impl Unpin for LockId
§impl UnwindSafe for LockId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
index fba6676ea3c..3916a913113 100644
--- a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
+++ b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
@@ -5,7 +5,7 @@
type AccountId: Eq + PartialEq;
type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>;
type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
Show 16 methods
// Required method
fn pages_final_prefix() -> [u8; 32];
@@ -28,10 +28,10 @@
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
) { ... }
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
fn set_allocations(
program_id: ProgramId,
- allocations: IntervalsTree<WasmPage>,
+ allocations: IntervalsTree<WasmPage>,
) { ... }
fn clear_allocations(program_id: ProgramId) { ... }
fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix> { ... }
@@ -57,7 +57,7 @@
) { ... }
fn clear_program_memory(program_id: ProgramId, memory_infix: MemoryInfix) { ... }
}Expand description
Trait to work with program data in a storage.
-Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
+Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
Provided Methods§
sourcefn add_program(
program_id: ProgramId,
@@ -74,7 +74,7 @@
program_id: ProgramId,
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
-)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
+)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
Enum gear_common::gas_provider::LockId
#[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
source · #[repr(u8)]pub enum LockId {
Mailbox = 0,
Waitlist = 1,
Reservation = 2,
@@ -8,8 +8,8 @@
§Waitlist = 1
The gas lock is provided by the waitlist.
§Reservation = 2
The gas lock is provided by reservation.
§DispatchStash = 3
The gas lock is provided by dispatch stash.
-
Trait Implementations§
§impl Sequence for LockId
impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
impl TryFrom<StorageType> for LockId
impl Copy for LockId
impl Eq for LockId
impl StructuralPartialEq for LockId
Auto Trait Implementations§
impl Freeze for LockId
impl RefUnwindSafe for LockId
impl Send for LockId
impl Sync for LockId
impl Unpin for LockId
impl UnwindSafe for LockId
Blanket Implementations§
Trait Implementations§
source§impl Sequence for LockId
impl Sequence for LockId
source§impl TryFrom<StorageType> for LockId
impl TryFrom<StorageType> for LockId
impl Copy for LockId
impl Eq for LockId
impl StructuralPartialEq for LockId
Auto Trait Implementations§
impl Freeze for LockId
impl RefUnwindSafe for LockId
impl Send for LockId
impl Sync for LockId
impl Unpin for LockId
impl UnwindSafe for LockId
Blanket Implementations§
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
diff --git a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
index fba6676ea3c..3916a913113 100644
--- a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
+++ b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
@@ -5,7 +5,7 @@
type AccountId: Eq + PartialEq;
type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>;
type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
Show 16 methods
// Required method
fn pages_final_prefix() -> [u8; 32];
@@ -28,10 +28,10 @@
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
) { ... }
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
fn set_allocations(
program_id: ProgramId,
- allocations: IntervalsTree<WasmPage>,
+ allocations: IntervalsTree<WasmPage>,
) { ... }
fn clear_allocations(program_id: ProgramId) { ... }
fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix> { ... }
@@ -57,7 +57,7 @@
) { ... }
fn clear_program_memory(program_id: ProgramId, memory_infix: MemoryInfix) { ... }
}Expand description
Trait to work with program data in a storage.
-Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
+Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
Provided Methods§
sourcefn add_program(
program_id: ProgramId,
@@ -74,7 +74,7 @@
program_id: ProgramId,
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
-)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
+)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
index fba6676ea3c..3916a913113 100644
--- a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
+++ b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html
@@ -5,7 +5,7 @@
type AccountId: Eq + PartialEq;
type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>;
type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
Show 16 methods
// Required method
fn pages_final_prefix() -> [u8; 32];
@@ -28,10 +28,10 @@
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
) { ... }
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... }
fn set_allocations(
program_id: ProgramId,
- allocations: IntervalsTree<WasmPage>,
+ allocations: IntervalsTree<WasmPage>,
) { ... }
fn clear_allocations(program_id: ProgramId) { ... }
fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix> { ... }
@@ -57,7 +57,7 @@
) { ... }
fn clear_program_memory(program_id: ProgramId, memory_infix: MemoryInfix) { ... }
}Expand description
Trait to work with program data in a storage.
-Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
+Required Associated Types§
sourcetype InternalError: Error
sourcetype Error: From<Self::InternalError> + Debug
sourcetype BlockNumber: Copy + Saturating
sourcetype AccountId: Eq + PartialEq
sourcetype ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
sourcetype MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
sourcetype AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
Provided Methods§
sourcefn add_program(
program_id: ProgramId,
@@ -74,7 +74,7 @@
program_id: ProgramId,
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
-)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
+)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
Show 16 methods
// Required method fn pages_final_prefix() -> [u8; 32]; @@ -28,10 +28,10 @@ memory_infix: MemoryInfix, pages: impl Iterator<Item = GearPage>, ) { ... } - fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... } + fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... } fn set_allocations( program_id: ProgramId, - allocations: IntervalsTree<WasmPage>, + allocations: IntervalsTree<WasmPage>, ) { ... } fn clear_allocations(program_id: ProgramId) { ... } fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix> { ... } @@ -57,7 +57,7 @@ ) { ... } fn clear_program_memory(program_id: ProgramId, memory_infix: MemoryInfix) { ... }Expand description
Trait to work with program data in a storage.
-Required Associated Types§
type InternalError: Error
type Error: From<Self::InternalError> + Debug
type BlockNumber: Copy + Saturating
type AccountId: Eq + PartialEq
type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
fn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
+Required Associated Types§
type InternalError: Error
type Error: From<Self::InternalError> + Debug
type BlockNumber: Copy + Saturating
type AccountId: Eq + PartialEq
type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>
type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>
type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>
Required Methods§
sourcefn pages_final_prefix() -> [u8; 32]
fn pages_final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys of memory pages.
Provided Methods§
sourcefn add_program(
program_id: ProgramId,
@@ -74,7 +74,7 @@
program_id: ProgramId,
memory_infix: MemoryInfix,
pages: impl Iterator<Item = GearPage>,
-)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
+)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
fn add_program( program_id: ProgramId, @@ -74,7 +74,7 @@ program_id: ProgramId, memory_infix: MemoryInfix, pages: impl Iterator<Item = GearPage>, -)
fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
fn clear_allocations(program_id: ProgramId)
fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
+)
sourcefn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
sourcefn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
sourcefn clear_allocations(program_id: ProgramId)
sourcefn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
fn update_program_if_active<F, ReturnType>( +)
fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>
fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)
fn clear_allocations(program_id: ProgramId)
fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>
sourcefn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
fn update_program_if_active<F, ReturnType>(
program_id: ProgramId,
update_action: F,
) -> Result<ReturnType, Self::Error>where
diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
index d8e22f5089b..e2605931597 100644
--- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html
@@ -1,5 +1,5 @@
MailboxKeyGen in gear_common::storage - Rust Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
Struct gear_common::storage::MailboxKeyGen
source · pub struct MailboxKeyGen<T>(/* private fields */);
Expand description
Key generator for gear
’s mailbox implementation.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MailboxKeyGen<T>
impl<T> RefUnwindSafe for MailboxKeyGen<T>where
+Trait Implementations§
Auto Trait Implementations§
§impl<T> Freeze for MailboxKeyGen<T>
§impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
§impl<T> Send for MailboxKeyGen<T>where
T: Send,
§impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
§impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
impl<T> Freeze for MailboxKeyGen<T>
impl<T> RefUnwindSafe for MailboxKeyGen<T>where
T: RefUnwindSafe,
impl<T> Send for MailboxKeyGen<T>where
T: Send,
impl<T> Sync for MailboxKeyGen<T>where
T: Sync,
impl<T> Unpin for MailboxKeyGen<T>where
diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
index 7d29922ebe2..141f217501a 100644
--- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html
@@ -1,5 +1,5 @@
QueueKeyGen in gear_common::storage - Rust Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for QueueKeyGen
§impl RefUnwindSafe for QueueKeyGen
§impl Send for QueueKeyGen
§impl Sync for QueueKeyGen
§impl Unpin for QueueKeyGen
§impl UnwindSafe for QueueKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
This trait is not object safe.Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
§type Key = ActorId
§type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
§type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html
index 321d5a8f516..6f66a7c44e2 100644
--- a/pr-4132/gear_common/struct.ActiveProgram.html
+++ b/pr-4132/gear_common/struct.ActiveProgram.html
@@ -1,26 +1,26 @@
-ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
Struct gear_common::storage::QueueKeyGen
source · pub struct QueueKeyGen;
Expand description
Key generator for gear
’s message queue implementation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueueKeyGen
impl RefUnwindSafe for QueueKeyGen
impl Send for QueueKeyGen
impl Sync for QueueKeyGen
impl Unpin for QueueKeyGen
impl UnwindSafe for QueueKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueueKeyGen
impl RefUnwindSafe for QueueKeyGen
impl Send for QueueKeyGen
impl Sync for QueueKeyGen
impl Unpin for QueueKeyGen
impl UnwindSafe for QueueKeyGen
Blanket Implementations§
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
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
index 05cedcc41bd..15c1fd157e9 100644
--- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
+++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html
@@ -1,5 +1,5 @@
WaitlistKeyGen in gear_common::storage - Rust Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for WaitlistKeyGen
§impl RefUnwindSafe for WaitlistKeyGen
§impl Send for WaitlistKeyGen
§impl Sync for WaitlistKeyGen
§impl Unpin for WaitlistKeyGen
§impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
index 9551e8ba077..90fab4707a5 100644
--- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
+++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html
@@ -15,7 +15,7 @@
Struct gear_common::storage::WaitlistKeyGen
source · pub struct WaitlistKeyGen;
Expand description
Key generator for gear
’s waitlist implementation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WaitlistKeyGen
impl RefUnwindSafe for WaitlistKeyGen
impl Send for WaitlistKeyGen
impl Sync for WaitlistKeyGen
impl Unpin for WaitlistKeyGen
impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WaitlistKeyGen
impl RefUnwindSafe for WaitlistKeyGen
impl Send for WaitlistKeyGen
impl Sync for WaitlistKeyGen
impl Unpin for WaitlistKeyGen
impl UnwindSafe for WaitlistKeyGen
Blanket Implementations§
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
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
index 52f7fcaaf0f..c2eb84b2393 100644
--- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
+++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html
@@ -52,4 +52,4 @@
key2: Self::Key2,
f: F,
) -> Option<R>Works the same as Self::mutate
, but triggers if value present.
-Object Safety§
This trait is not object safe.Implementors§
Works the same as Self::mutate
, but triggers if value present.
Object Safety§
Implementors§
Required Methods§
Object Safety§
Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
+
Object Safety§
Implementors§
source§impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap
type Key = ActorId
type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>
source§impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>where
T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>,
Error: MailboxError,
OutputError: From<Error>,
diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html
index 8841df7d515..b072394addd 100644
--- a/pr-4132/gear_common/storage/trait.KeyFor.html
+++ b/pr-4132/gear_common/storage/trait.KeyFor.html
@@ -10,4 +10,4 @@
Required Associated Types§
Required Methods§
Object Safety§
Implementors§
Object Safety§
Implementors§
Struct gear_common::ActiveProgram
pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
source · pub struct ActiveProgram<BlockNumber>where
BlockNumber: Copy,{
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
- pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
+ pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>,
pub code_hash: H256,
- pub code_exports: BTreeSet<DispatchKind>,
- pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
- pub state: ProgramState,
+ pub code_exports: BTreeSet<DispatchKind>,
+ pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>,
+ pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
§memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
-§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
+§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>
Gas reservation map.
§code_hash: H256
Code hash of the program.
-§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
-§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
-§state: ProgramState
Initialization state of the program.
+§code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
+§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
Amount of static pages.
+§state: ProgramState
Initialization state of the program.
§expiration_block: BlockNumber
Block number when the program will be expired.
-Trait Implementations§
§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Decode,
Trait Implementations§
source§impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
source§fn clone(&self) -> ActiveProgram<BlockNumber>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
source§impl<BlockNumber> Decode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Decode,
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<ActiveProgram<BlockNumber>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -28,21 +28,21 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
- BlockNumber: Copy,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy,
§type Error = InactiveProgramError
The type returned in the event of a conversion error.source§fn try_from(
prog_with_status: Program<BlockNumber>,
-) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>
Performs the conversion.§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
- BlockNumber: Copy + Encode,
§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
source§impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>where
BlockNumber: Copy,
Auto Trait Implementations§
§impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
§impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
§impl<BlockNumber> Send for ActiveProgram<BlockNumber>
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.§impl Decode for CodeId
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<CodeId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html
index 5c527ef1109..75c1739ce2b 100644
--- a/pr-4132/gear_common/struct.MemoryInfix.html
+++ b/pr-4132/gear_common/struct.MemoryInfix.html
@@ -1,7 +1,7 @@
-MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
-Implementations§
§impl MemoryInfix
pub const fn new(value: u32) -> MemoryInfix
Constructing function from u32 number.
-Trait Implementations§
§impl Clone for MemoryInfix
§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MemoryInfix
§impl Decode for MemoryInfix
§fn decode<__CodecInputEdqy>(
+MemoryInfix in gear_common - Rust Struct gear_common::MemoryInfix
source · pub struct MemoryInfix(/* private fields */);
Expand description
Struct defines infix of memory pages storage.
+Implementations§
source§impl MemoryInfix
Trait Implementations§
source§impl Clone for MemoryInfix
source§fn clone(&self) -> MemoryInfix
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemoryInfix
source§impl Decode for MemoryInfix
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<MemoryInfix, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -9,16 +9,16 @@
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more§impl Default for MemoryInfix
§fn default() -> MemoryInfix
Returns the “default value” for a type. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
- __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl PartialEq for MemoryInfix
§impl TypeInfo for MemoryInfix
§impl Copy for MemoryInfix
§impl EncodeLike for MemoryInfix
§impl Eq for MemoryInfix
§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl PartialEq for MemoryInfix
source§impl TypeInfo for MemoryInfix
source§impl Copy for MemoryInfix
source§impl EncodeLike for MemoryInfix
source§impl Eq for MemoryInfix
source§impl StructuralPartialEq for MemoryInfix
Auto Trait Implementations§
§impl Freeze for MemoryInfix
§impl RefUnwindSafe for MemoryInfix
§impl Send for MemoryInfix
§impl Sync for MemoryInfix
§impl Unpin for MemoryInfix
§impl UnwindSafe for MemoryInfix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html
index 23d057c7109..b4968b2fa3d 100644
--- a/pr-4132/gear_common/struct.MessageId.html
+++ b/pr-4132/gear_common/struct.MessageId.html
@@ -31,11 +31,11 @@
__CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates MessageId
for non-program outgoing message.§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read more§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.§impl Ord for MessageId
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates MessageId
for non-program outgoing message.source§fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId
Generates MessageId
for program outgoing message.source§fn generate_reply(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for reply message depend on status code. Read moresource§fn generate_signal(origin_msg_id: MessageId) -> MessageId
Generates MessageId
for signal message depend on status code.
§impl Ord for MessageId
source§impl Origin for MessageId
source§fn into_origin(self) -> H256
source§fn from_origin(val: H256) -> Self
source§fn cast<T: Origin>(self) -> T
§impl PartialEq for MessageId
§fn eq(&self, other: &MessageId) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html
index 91aa23b704a..699ff414e4c 100644
--- a/pr-4132/gear_common/struct.PageBuf.html
+++ b/pr-4132/gear_common/struct.PageBuf.html
@@ -1,7 +1,7 @@
-PageBuf in gear_common - Rust Struct gear_common::PageBuf
pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
-Implementations§
§impl PageBuf
pub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
-pub fn from_inner(
- inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
+PageBuf in gear_common - Rust Struct gear_common::PageBuf
source · pub struct PageBuf(/* private fields */);
Expand description
Buffer for gear page data.
+Implementations§
source§impl PageBuf
sourcepub fn new_zeroed() -> PageBuf
Returns new page buffer with zeroed data.
+sourcepub fn from_inner(
+ inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>,
) -> PageBuf
Creates PageBuf from inner buffer. If the buffer has
the size of GearPage
then no reallocations occur.
In other case it will be extended with zeros.
@@ -2454,16 +2454,16 @@ §Examples<
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use make_ascii_lowercase
.
-Trait Implementations§
§impl Decode for PageBuf
Trait Implementations§
source§impl Decode for PageBuf
source§fn decode<I>(input: &mut I) -> Result<PageBuf, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for PageBuf
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<W>(&self, dest: &mut W)where
W: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl EncodeLike for PageBuf
§impl Eq for PageBuf
§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl EncodeLike for PageBuf
source§impl Eq for PageBuf
source§impl StructuralPartialEq for PageBuf
Auto Trait Implementations§
§impl Freeze for PageBuf
§impl RefUnwindSafe for PageBuf
§impl Send for PageBuf
§impl Sync for PageBuf
§impl Unpin for PageBuf
§impl UnwindSafe for PageBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html
index d0d4addcc85..2a6cea59b11 100644
--- a/pr-4132/gear_common/struct.ReservationId.html
+++ b/pr-4132/gear_common/struct.ReservationId.html
@@ -35,7 +35,7 @@
and should not be overridden without very good reason.
§impl PartialOrd for ReservationId
§impl ReservationIdExt for ReservationId
§fn generate(msg_id: MessageId, nonce: u64) -> ReservationId
Generates ReservationId
from given message and nonce.§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
source§impl ReservationIdExt for ReservationId
§impl TypeInfo for ReservationId
§impl Copy for ReservationId
§impl EncodeLike for ReservationId
§impl Eq for ReservationId
§impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
§impl Freeze for ReservationId
§impl RefUnwindSafe for ReservationId
§impl Send for ReservationId
§impl Sync for ReservationId
§impl Unpin for ReservationId
§impl UnwindSafe for ReservationId
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O> ⓘwhere
diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html
index afa178bc6e3..2f46fe46053 100644
--- a/pr-4132/gear_common/type.GearPage.html
+++ b/pr-4132/gear_common/type.GearPage.html
@@ -1,2 +1,2 @@
-GearPage in gear_common - Rust Type Alias gear_common::GearPage
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
+GearPage in gear_common - Rust Type Alias gear_common::GearPage
source · pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description
Page of gear page size - 16 kiB.
Aliased Type§
struct GearPage(/* private fields */);
\ No newline at end of file
diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html
index 335d9e5c1d3..4778f5505a1 100644
--- a/pr-4132/gear_common/type.ProgramId.html
+++ b/pr-4132/gear_common/type.ProgramId.html
@@ -1,2 +1,2 @@
-ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
Aliased Type§
struct ProgramId(/* private fields */);
Trait Implementations§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html
index 0bb837b6e8b..f06d67cbf4a 100644
--- a/pr-4132/pallet_gear/manager/index.html
+++ b/pr-4132/pallet_gear/manager/index.html
@@ -9,8 +9,8 @@
in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some
value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using
corresponding pallet_balances
functions (reserve
, repatriate_reserved
, unreserve
along with transfer
) in pallet_gear
extrinsics,
-JournalHandler::send_dispatch
and
-JournalHandler::send_value
procedures.
+JournalHandler::send_dispatch
and
+JournalHandler::send_value
procedures.
Balance sufficiency before adding message with value to the queue.
@@ -21,7 +21,7 @@
by program’s balance checks. The check gives guarantee that value reservation call in
-JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
+
JournalHandler::send_dispatch
for program’s messages won’t fail, because there is always a
sufficient balance for the call.
- Messages’s value management considers existential deposit rule.
diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html
index d559fe4ad57..8b4606237ed 100644
--- a/pr-4132/pallet_gear/manager/struct.ExtManager.html
+++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html
@@ -15,65 +15,65 @@
)
sourcepub fn remove_gas_reservation_impl(
program_id: ProgramId,
reservation_id: ReservationId,
-) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
+) -> GasReservationSlot
Trait Implementations§
source§impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData
source§fn from(ext_manager: ExtManager<T>) -> Self
Converts to this type from the input type.source§impl<T> JournalHandler for ExtManager<T>where
T: Config,
- T::AccountId: Origin,
source§fn message_dispatched(
+ T::AccountId: Origin,
source§fn message_dispatched(
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
-)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
+ outcome: CoreDispatchOutcome,
+)
Process message dispatch.source§fn gas_burned(&mut self, message_id: MessageId, amount: u64)
Process gas burned.source§fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)
Process exit dispatch.source§fn message_consumed(&mut self, message_id: MessageId)
Process message consumed.source§fn send_dispatch(
&mut self,
message_id: MessageId,
dispatch: Dispatch,
delay: u32,
reservation: Option<ReservationId>,
-)
Process send dispatch.source§fn wait_dispatch(
+)
Process send dispatch.source§fn wait_dispatch(
&mut self,
dispatch: StoredDispatch,
duration: Option<u32>,
waited_type: MessageWaitedType,
-)
Process send message.source§fn wake_message(
+)
Process send message.source§fn wake_message(
&mut self,
message_id: MessageId,
program_id: ProgramId,
awakening_id: MessageId,
delay: u32,
-)
Process send message.source§fn update_pages_data(
+)
Process send message.source§fn update_pages_data(
&mut self,
program_id: ProgramId,
pages_data: BTreeMap<GearPage, PageBuf>,
-)
Process page update.source§fn update_allocations(
+)
Process page update.source§fn update_allocations(
&mut self,
program_id: ProgramId,
allocations: IntervalsTree<WasmPage>,
-)
Process JournalNote::UpdateAllocations.source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
+)
Process [JournalNote::UpdateAllocations].source§fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)
Send value.source§fn store_new_programs(
&mut self,
program_id: ProgramId,
code_id: CodeId,
candidates: Vec<(MessageId, ProgramId)>,
-)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
+)
Store new programs in storage. Read moresource§fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)
Stop processing queue. Read moresource§fn reserve_gas(
&mut self,
message_id: MessageId,
reservation_id: ReservationId,
program_id: ProgramId,
amount: u64,
duration: u32,
-)
Reserve gas.source§fn unreserve_gas(
+)
Reserve gas.source§fn unreserve_gas(
&mut self,
reservation_id: ReservationId,
program_id: ProgramId,
expiration: u32,
-)
Unreserve gas.source§fn update_gas_reservation(
+)
Unreserve gas.source§fn update_gas_reservation(
&mut self,
program_id: ProgramId,
reserver: GasReserver,
-)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
+)
Update gas reservations.source§fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)
Do system reservation.source§fn system_unreserve_gas(&mut self, message_id: MessageId)
Do system unreservation.source§fn send_signal(
&mut self,
message_id: MessageId,
destination: ProgramId,
code: SignalCode,
-)
Send system signal.source§fn reply_deposit(
+)
Send system signal.source§fn reply_deposit(
&mut self,
message_id: MessageId,
future_reply_id: MessageId,
diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html
index 85abf01eb3e..5140c59dcfa 100644
--- a/pr-4132/pallet_gear/struct.Schedule.html
+++ b/pr-4132/pallet_gear/struct.Schedule.html
@@ -48,7 +48,7 @@ §Note
§code_instrumentation_cost: Weight
WASM code instrumentation base cost.
§code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
§load_allocations_weight: Weight
Load allocations weight.
-Implementations§
source§impl<T: Config> Schedule<T>
sourcepub fn rules(&self, module: &Module) -> impl Rules + '_
sourcepub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>where
+Implementations§
Trait Implementations§
source§impl<T: Config> Decode for Schedule<T>
source§fn decode<__CodecInputEdqy: Input>(
diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
index bd4c290e602..4460fe38eae 100644
--- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
+++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html
@@ -8,7 +8,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}Expand description
A trait representing a registry that provides methods to lookup and run a builtin actor.
Required Associated Types§
Required Methods§
sourcefn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>
Looks up a builtin actor by its actor id.
sourcefn run(
@@ -16,9 +16,9 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
-) -> Vec<JournalNote>
Implementations on Foreign Types§
\ No newline at end of file
+) -> Vec<JournalNote>
Implementors§
\ No newline at end of file
diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html
index 8d8715b1e45..e1a176e3c3f 100644
--- a/pr-4132/pallet_gear/type.Ext.html
+++ b/pr-4132/pallet_gear/type.Ext.html
@@ -1,7 +1,7 @@
-Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
- pub context: ProcessorContext,
+Ext in pallet_gear - Rust Type Alias pallet_gear::Ext
source · pub type Ext = Ext<LazyPagesRuntimeInterface>;
Aliased Type§
struct Ext {
+ pub context: ProcessorContext,
pub current_counter: CounterType,
/* private fields */
-}
Fields§
§context: ProcessorContext
Processor context.
+}Fields§
§context: ProcessorContext
Processor context.
§current_counter: CounterType
Actual gas counter type within wasm module’s global.
\ No newline at end of file
diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
index 6bc608963b1..78a1e09d462 100644
--- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
+++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html
@@ -183,7 +183,7 @@
use core::cell::RefCell;
use gear_core::{
ids::{MessageId, ProgramId},
- message::UserStoredMessage,
+ message::UserStoredMessage,
};
/// Mailbox implementation that can be used in a native, non-wasm runtimes.
@@ -199,7 +199,7 @@
/// Block number type.
pub type BlockNumber = u32;
/// Type represents message stored in the mailbox.
-pub type MailboxedMessage = UserStoredMessage;
+pub type MailboxedMessage = UserStoredMessage;
std::thread_local! {
// Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor.
diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html
index f782e7e86b9..e0b14d44d85 100644
--- a/pr-4132/src/gear_common/code_storage.rs.html
+++ b/pr-4132/src/gear_common/code_storage.rs.html
@@ -125,7 +125,7 @@
use super::*;
use crate::storage::MapStorage;
-use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
+use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId};
#[derive(Clone, Copy, Debug)]
pub enum Error {
@@ -135,7 +135,7 @@
/// Trait to work with program binary codes in a storage.
pub trait CodeStorage {
- type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+ type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -148,16 +148,16 @@
Self::InstrumentedCodeStorage::clear();
}
- fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
- let (code, code_id) = code_and_id.into_parts();
- let (code, original_code) = code.into_parts();
+ fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> {
+ let (code, code_id) = code_and_id.into_parts();
+ let (code, original_code) = code.into_parts();
Self::InstrumentedCodeStorage::mutate(code_id, |maybe| {
if maybe.is_some() {
return Err(CodeStorageError::DuplicateItem);
}
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::OriginalCodeStorage::insert(code_id, original_code);
Self::MetadataStorage::insert(code_id, metadata);
@@ -167,10 +167,10 @@
}
/// Update the corresponding code in the storage.
- fn update_code(code_and_id: InstrumentedCodeAndId) {
- let (code, code_id) = code_and_id.into_parts();
+ fn update_code(code_and_id: InstrumentedCodeAndId) {
+ let (code, code_id) = code_and_id.into_parts();
- Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
+ Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32);
Self::InstrumentedCodeStorage::insert(code_id, code);
}
@@ -196,7 +196,7 @@
})
}
- fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
+ fn get_code(code_id: CodeId) -> Option<InstrumentedCode> {
Self::InstrumentedCodeStorage::get(&code_id)
}
diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html
index f6350d8009b..dacfab49860 100644
--- a/pr-4132/src/gear_common/event.rs.html
+++ b/pr-4132/src/gear_common/event.rs.html
@@ -268,7 +268,7 @@
//! This module contains components for depositing proper
//! and extensive data about actions happen.
-use gear_core::{ids::MessageId, message::MessageWaitedType};
+use gear_core::{ids::MessageId, message::MessageWaitedType};
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
@@ -362,13 +362,13 @@
WaitUpToCalledFull,
}
-impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
- fn from(src: MessageWaitedType) -> Self {
+impl From<MessageWaitedType> for MessageWaitedRuntimeReason {
+ fn from(src: MessageWaitedType) -> Self {
match src {
- MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
- MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
- MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
- MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
+ MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled,
+ MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled,
+ MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled,
+ MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull,
}
}
}
diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html
index 78e5d8051d3..ff83ce886ab 100644
--- a/pr-4132/src/gear_common/program_storage.rs.html
+++ b/pr-4132/src/gear_common/program_storage.rs.html
@@ -221,7 +221,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
+use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage};
use super::*;
use crate::storage::{MapStorage, TripleMapStorage};
@@ -263,7 +263,7 @@
Key3 = GearPage,
Value = PageBuf,
>;
- type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
+ type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
/// Attempt to remove all items from all the associated maps.
fn reset() {
@@ -321,11 +321,11 @@
}
}
- fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
+ fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> {
Self::AllocationsMap::get(&program_id)
}
- fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
+ fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) {
Self::update_active_program(program_id, |program| {
program.allocations_tree_len = u32::try_from(allocations.intervals_amount())
.unwrap_or_else(|err| {
diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html
index dd3710fb157..f74f1614998 100644
--- a/pr-4132/src/gear_common/storage/primitives/key.rs.html
+++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html
@@ -113,7 +113,7 @@
use core::marker::PhantomData;
use gear_core::{
ids::{MessageId, ProgramId},
- message::{StoredDispatch, UserStoredMessage},
+ message::{StoredDispatch, UserStoredMessage},
};
/// Represents logic of providing key as specified
@@ -138,10 +138,10 @@
// destination parameter.
impl<T: Origin> KeyFor for MailboxKeyGen<T> {
type Key = (T, MessageId);
- type Value = UserStoredMessage;
+ type Value = UserStoredMessage;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination().cast(), value.id())
+ (value.destination().cast(), value.id())
}
}
@@ -152,10 +152,10 @@
// it's `MessageId` id parameter.
impl KeyFor for QueueKeyGen {
type Key = MessageId;
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- value.id()
+ value.id()
}
}
@@ -166,10 +166,10 @@
// `ProgramId` and `MessageId` id parameters.
impl KeyFor for WaitlistKeyGen {
type Key = (ProgramId, MessageId);
- type Value = StoredDispatch;
+ type Value = StoredDispatch;
fn key_for(value: &Self::Value) -> Self::Key {
- (value.destination(), value.id())
+ (value.destination(), value.id())
}
}
\ No newline at end of file
diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html
index fed35c68018..7bb9e1099ac 100644
--- a/pr-4132/src/pallet_gear/builtin.rs.html
+++ b/pr-4132/src/pallet_gear/builtin.rs.html
@@ -92,7 +92,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::common::JournalNote;
+use core_processor::common::JournalNote;
use gear_core::{
ids::ProgramId,
message::{Payload, StoredDispatch},
@@ -112,7 +112,7 @@
f: &HandleFn<Self::Error>,
dispatch: StoredDispatch,
gas_limit: u64,
- ) -> Vec<JournalNote>;
+ ) -> Vec<JournalNote>;
}
impl BuiltinDispatcher for () {
@@ -127,7 +127,7 @@
_f: &HandleFn<Self::Error>,
_dispatch: StoredDispatch,
_gas_limit: u64,
- ) -> Vec<JournalNote> {
+ ) -> Vec<JournalNote> {
Default::default()
}
}
diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html
index bf31ba89a8a..9a9ff1b354c 100644
--- a/pr-4132/src/pallet_gear/lib.rs.html
+++ b/pr-4132/src/pallet_gear/lib.rs.html
@@ -2144,8 +2144,8 @@
};
use core::{marker::PhantomData, num::NonZeroU32};
use core_processor::{
- common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
- configs::{BlockConfig, BlockInfo},
+ common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote},
+ configs::{BlockConfig, BlockInfo},
};
use frame_support::{
dispatch::{DispatchResultWithPostInfo, PostDispatchInfo},
@@ -3138,15 +3138,15 @@
}
}
- pub(crate) fn block_config() -> BlockConfig {
- let block_info = BlockInfo {
+ pub(crate) fn block_config() -> BlockConfig {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
let schedule = T::Schedule::get();
- BlockConfig {
+ BlockConfig {
block_info,
performance_multiplier: T::PerformanceMultiplier::get().into(),
forbidden_funcs: Default::default(),
diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html
index 6bcb147ab6e..6c05dc6ab34 100644
--- a/pr-4132/src/pallet_gear/manager/journal.rs.html
+++ b/pr-4132/src/pallet_gear/manager/journal.rs.html
@@ -721,7 +721,7 @@
storage::*,
CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree,
};
-use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
+use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler};
use frame_support::{
sp_runtime::Saturating,
traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons},
@@ -739,7 +739,7 @@
use sp_runtime::traits::{UniqueSaturatedInto, Zero};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
-impl<T> JournalHandler for ExtManager<T>
+impl<T> JournalHandler for ExtManager<T>
where
T: Config,
T::AccountId: Origin,
@@ -748,12 +748,12 @@
&mut self,
message_id: MessageId,
source: ProgramId,
- outcome: CoreDispatchOutcome,
+ outcome: CoreDispatchOutcome,
) {
- use CoreDispatchOutcome::*;
+ use CoreDispatchOutcome::*;
let status = match outcome {
- Exit { program_id } => {
+ Exit { program_id } => {
log::trace!("Dispatch outcome exit: {:?}", message_id);
Pallet::<T>::deposit_event(Event::ProgramChanged {
@@ -763,12 +763,12 @@
DispatchStatus::Success
}
- Success => {
+ Success => {
log::trace!("Dispatch outcome success: {:?}", message_id);
DispatchStatus::Success
}
- MessageTrap { program_id, trap } => {
+ MessageTrap { program_id, trap } => {
log::trace!("Dispatch outcome trap: {:?}", message_id);
log::debug!(
"🪤 Program {} terminated with a trap: {}",
@@ -778,7 +778,7 @@
DispatchStatus::Failed
}
- InitSuccess { program_id, .. } => {
+ InitSuccess { program_id, .. } => {
log::trace!(
"Dispatch ({:?}) init success for program {:?}",
message_id,
@@ -818,7 +818,7 @@
DispatchStatus::Success
}
- InitFailure {
+ InitFailure {
program_id,
origin,
reason,
@@ -831,7 +831,7 @@
DispatchStatus::Failed
}
- NoExecution => {
+ NoExecution => {
log::trace!("Dispatch ({:?}) for program wasn't executed", message_id);
DispatchStatus::NotExecuted
diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html
index f028676f878..28857c33767 100644
--- a/pr-4132/src/pallet_gear/queue.rs.html
+++ b/pr-4132/src/pallet_gear/queue.rs.html
@@ -333,11 +333,11 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::*;
-use core_processor::ContextChargedForInstrumentation;
+use core_processor::ContextChargedForInstrumentation;
use gear_core::program::ProgramState;
pub(crate) struct QueueStep<'a, T: Config> {
- pub block_config: &'a BlockConfig,
+ pub block_config: &'a BlockConfig,
pub gas_limit: GasBalanceOf<T>,
pub dispatch: StoredDispatch,
pub balance: u128,
@@ -347,7 +347,7 @@
where
T::AccountId: Origin,
{
- pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
+ pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> {
let QueueStep {
block_config,
gas_limit,
@@ -362,7 +362,7 @@
// To start executing a message resources of a destination program should be
// fetched from the storage.
// The first step is to get program data so charge gas for the operation.
- let context = match core_processor::precharge_for_program(
+ let context = match core_processor::precharge_for_program(
block_config,
GasAllowanceOf::<T>::get(),
dispatch.into_incoming(gas_limit),
@@ -375,7 +375,7 @@
let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id)
else {
log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}");
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
};
if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init {
@@ -408,10 +408,10 @@
unreachable!("{err_msg}");
}
- return core_processor::process_non_executable(context);
+ return core_processor::process_non_executable(context);
}
- let context = match core_processor::precharge_for_allocations(
+ let context = match core_processor::precharge_for_allocations(
block_config,
context,
program.allocations_tree_len,
@@ -429,7 +429,7 @@
})
}).unwrap_or_default();
- let actor_data = ExecutableActorData {
+ let actor_data = ExecutableActorData {
allocations,
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
@@ -441,13 +441,13 @@
// The second step is to load instrumented binary code of the program but
// first its correct length should be obtained.
let context =
- match core_processor::precharge_for_code_length(block_config, context, actor_data) {
+ match core_processor::precharge_for_code_length(block_config, context, actor_data) {
Ok(context) => context,
Err(journal) => return journal,
};
// Load correct code length value.
- let code_id = context.actor_data().code_id;
+ let code_id = context.actor_data().code_id;
let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| {
// `Program` exists, so do code and code len.
let err_msg = format!(
@@ -461,7 +461,7 @@
// Adjust gas counters for fetching instrumented binary code.
let context =
- match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
+ match core_processor::precharge_for_code(block_config, context, code_len_bytes) {
Ok(context) => context,
Err(journal) => return journal,
};
@@ -486,7 +486,7 @@
} else {
log::debug!("Re-instrumenting code for program '{destination_id:?}'");
- let context = match core_processor::precharge_for_instrumentation(
+ let context = match core_processor::precharge_for_instrumentation(
block_config,
context,
code.original_code_len(),
@@ -499,7 +499,7 @@
Ok(code) => code,
Err(e) => {
log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}");
- return core_processor::process_reinstrumentation_error(context);
+ return core_processor::process_reinstrumentation_error(context);
}
};
@@ -507,7 +507,7 @@
};
// The last one thing is to load program memory. Adjust gas counters for memory pages.
- let context = match core_processor::precharge_for_module_instantiation(
+ let context = match core_processor::precharge_for_module_instantiation(
block_config,
context,
code.instantiated_section_sizes(),
diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html
index 25d2122f06d..b2a0c700d4d 100644
--- a/pr-4132/src/pallet_gear/runtime_api.rs.html
+++ b/pr-4132/src/pallet_gear/runtime_api.rs.html
@@ -1129,7 +1129,7 @@
allowance_multiplier,
)?);
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1166,7 +1166,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1202,7 +1202,7 @@
memory_infix,
} = Self::code_with_memory(program_id)?;
- let block_info = BlockInfo {
+ let block_info = BlockInfo {
height: Self::block_number().unique_saturated_into(),
timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(),
};
@@ -1297,7 +1297,7 @@
fn dequeue_head_and_run(
ext_manager: &mut ExtManager<T>,
forbidden_funcs: Option<BTreeSet<SyscallName>>,
- ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
+ ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> {
// Extracting queued dispatch.
let head =
QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?;
diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html
index 7e88e9dcf00..9307fd4a712 100644
--- a/pr-4132/src/pallet_gear/schedule.rs.html
+++ b/pr-4132/src/pallet_gear/schedule.rs.html
@@ -1597,7 +1597,7 @@
use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf};
use common::scheduler::SchedulingCostsPerBlock;
-use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
+use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts};
use frame_support::{traits::Get, weights::Weight};
use gear_core::{
code::MAX_WASM_PAGES_AMOUNT,
@@ -2748,11 +2748,11 @@
}
}
- pub fn process_costs(&self) -> ProcessCosts {
- ProcessCosts {
- ext: ExtCosts {
+ pub fn process_costs(&self) -> ProcessCosts {
+ ProcessCosts {
+ ext: ExtCosts {
syscalls: self.syscall_weights.clone().into(),
- rent: RentCosts {
+ rent: RentCosts {
waitlist: CostsPerBlockOf::<T>::waitlist().into(),
dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(),
reservation: CostsPerBlockOf::<T>::reservation().into(),
@@ -2766,7 +2766,7 @@
write: DbWeightOf::<T>::get().writes(1).ref_time().into(),
instrumentation: self.code_instrumentation_cost.ref_time().into(),
instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(),
- instantiation_costs: InstantiationCosts {
+ instantiation_costs: InstantiationCosts {
code_section_per_byte: self
.instantiation_weights
.code_section_per_byte
diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index a0d449ea8ac..f8e9a1e041d 100644
--- a/pr-4132/trait.impl/core/convert/trait.From.js
+++ b/pr-4132/trait.impl/core/convert/trait.From.js
@@ -1,7 +1,7 @@
(function() {var implementors = {
"gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]],
"gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]],
-"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
+"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier"],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>"],["impl<T> From<ReservationNodeId> for GasNodeId<T, ReservationNodeId>"],["impl<T> From<ReservationId> for GasNodeId<T, ReservationId>"],["impl<U> From<PlainNodeId> for GasNodeId<PlainNodeId, U>"],["impl<U> From<MessageId> for GasNodeId<MessageId, U>"]],
"gear_core":[["impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound"],["impl From<(i64, i64)> for GasLeft"],["impl From<(u32, u32)> for MemoryInterval"],["impl From<(u64, u64)> for GasLeft"],["impl From<CodecError> for CodeError"],["impl From<DataSectionError> for CodeError"],["impl From<ExportError> for CodeError"],["impl From<ImportError> for CodeError"],["impl From<InstrumentationError> for CodeError"],["impl From<MemoryError> for CodeError"],["impl From<SectionError> for CodeError"],["impl From<StackEndError> for CodeError"],["impl From<TableSectionError> for CodeError"],["impl From<ChargeError> for AllocError"],["impl From<u16> for GearPage"],["impl From<u16> for GearPagesAmount"],["impl From<u16> for WasmPage"],["impl From<u16> for WasmPagesAmount"],["impl From<u32> for BlocksAmount"],["impl From<u32> for BytesAmount"],["impl From<u32> for CallsAmount"],["impl From<u32> for Percent"],["impl From<RuntimeBufferSizeError> for &str"],["impl From<BinaryReaderError> for CodeError"],["impl From<Code> for InstrumentedCode"],["impl From<CodeAndId> for InstrumentedCodeAndId"],["impl From<BlocksAmount> for u32"],["impl From<BytesAmount> for u32"],["impl From<CallsAmount> for u32"],["impl From<MemoryInterval> for (u32, u32)"],["impl From<Dispatch> for (DispatchKind, Message)"],["impl From<Dispatch> for StoredDelayedDispatch"],["impl From<Dispatch> for StoredDispatch"],["impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)"],["impl From<Message> for StoredMessage"],["impl From<PayloadSizeError> for &str"],["impl From<ReplyDetails> for MessageDetails"],["impl From<SignalDetails> for MessageDetails"],["impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)"],["impl From<StoredDelayedDispatch> for StoredDispatch"],["impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)"],["impl From<UserMessage> for StoredMessage"],["impl From<UserStoredMessage> for StoredMessage"],["impl From<Percent> for Percent"],["impl From<GasReservationSlot> for GasReservationState"],["impl<'a> From<String> for LimitedStr<'a>"],["impl<JobErr> From<(UnlockPayloadBound, Result<(), JobErr>)> for DropPayloadLockBound<JobErr>"],["impl<T> From<u64> for CostOf<T>"],["impl<T> From<CostOf<T>> for u64"],["impl<const SIZE: u32> From<Option<Page<SIZE>>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<Page<SIZE>> for u32"],["impl<const SIZE: u32> From<Page<SIZE>> for PagesAmount<SIZE>"],["impl<const SIZE: u32> From<PagesAmount<SIZE>> for u32"]],
"gear_core_backend":[["impl From<ActorTerminationReason> for UndefinedTerminationReason"],["impl From<ActorTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<TrapExplanation> for ActorTerminationReason"],["impl From<TrapExplanation> for UndefinedTerminationReason"],["impl From<UnrecoverableExecutionError> for UnrecoverableExtError"],["impl From<UnrecoverableExtError> for TrapExplanation"],["impl From<UnrecoverableMemoryError> for UnrecoverableExtError"],["impl From<UnrecoverableWaitError> for UnrecoverableExtError"],["impl From<()> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for UndefinedTerminationReason"],["impl From<SystemTerminationReason> for ActorSystemError<ActorTerminationReason, SystemTerminationReason>"],["impl From<ChargeError> for UndefinedTerminationReason"],["impl From<CounterType> for ActorTerminationReason"],["impl From<LimitedStr<'static>> for TrapExplanation"],["impl<E> From<E> for RunFallibleErrorwhere\n E: BackendSyscallError,"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]],
"gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]],
diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
index 610b15d6f4a..d37a9f40072 100644
--- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
+++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js
@@ -1,3 +1,3 @@
(function() {var implementors = {
-"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
+"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>where\n T: Config,\n T::AccountId: Origin,"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 3ee80c804ae..1b5be40ec92 100644
--- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
+++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Decode for UserStoredMessage
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Encode for UserStoredMessage
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Ord for UserStoredMessage
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl UserStoredMessage
pub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\npub fn source(&self) -> ActorId
Message source.
\npub fn destination(&self) -> ActorId
Message destination.
\npub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
+"gear_common":[["source§impl Clone for UserStoredMessage
source§fn clone(&self) -> UserStoredMessage
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Debug for UserStoredMessage
","Debug","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Decode for UserStoredMessage
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<UserStoredMessage, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Default for UserStoredMessage
source§fn default() -> UserStoredMessage
Returns the “default value” for a type. Read more","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Encode for UserStoredMessage
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Hash for UserStoredMessage
","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Ord for UserStoredMessage
source§fn cmp(&self, other: &UserStoredMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialEq for UserStoredMessage
","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl PartialOrd for UserStoredMessage
","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<StoredMessage> for UserStoredMessage
source§fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TryFrom<UserMessage> for UserStoredMessage
source§fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>
Performs the conversion.","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl TypeInfo for UserStoredMessage
","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl UserStoredMessage
sourcepub fn new(\n id: MessageId,\n source: ActorId,\n destination: ActorId,\n payload: LimitedVec<u8, PayloadSizeError, gear_core::::message::Payload::{constant#0}>,\n value: u128,\n) -> UserStoredMessage
Create new UserStoredMessage.
\nsourcepub fn destination(&self) -> ActorId
Message destination.
\nsourcepub fn payload_bytes(&self) -> &[u8] ⓘ
Message payload bytes.
\n",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl EncodeLike for UserStoredMessage
","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl Eq for UserStoredMessage
","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["source§impl StructuralPartialEq for UserStoredMessage
","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js
index fb9c4e65442..ab165e51afb 100644
--- a/pr-4132/type.impl/gear_core/pages/struct.Page.js
+++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js
@@ -1,4 +1,4 @@
(function() {var type_impls = {
-"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["§impl<const SIZE: u32> Decode for Page<SIZE>
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["§impl<const SIZE: u32> Encode for Page<SIZE>
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["§impl<const SIZE: u32> Ord for Page<SIZE>
","Ord","gear_common::GearPage"],["§impl<const SIZE: u32> Page<SIZE>
pub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\npub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\npub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\npub fn end_offset(&self) -> u32
Returns page last byte offset.
\npub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type [Page<S1>
].
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
+"gear_common":[["","Clone","gear_common::GearPage"],["","Debug","gear_common::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Page<SIZE>, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::GearPage"],["","Default","gear_common::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::GearPage"],["","From","gear_common::GearPage"],["","From","gear_common::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
source§fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_common::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_common::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Page<SIZE> = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Page<SIZE>
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_common::GearPage"],["","PartialEq>","gear_common::GearPage"],["","PartialEq","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_common::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_common::GearPage"],["","TryFrom","gear_common::GearPage"],["","TypeInfo","gear_common::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_common::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_common::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_common::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_common::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_common::GearPage"]],
"gear_core":[["","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Debug","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Decode for Page<SIZE>
source§fn decode<__CodecInputEdqy: Input>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","Default","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Encode for Page<SIZE>
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)
Convert self to a slice and append it to the destination.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> LowerBounded for Page<SIZE>
","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Numerated for Page<SIZE>
§type Bound = PagesAmount<SIZE>
Bound type: type for which any value can be mapped to Self
,\nand also has upper value, which is bigger than any value of Self
.source§fn add_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
source§fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>
§fn enclosed_by(self, a: &Self, b: &Self) -> bool
Returns true
, if self
is enclosed by a
and b
.","Numerated","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Ord for Page<SIZE>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Page<SIZE>
sourcepub const SIZE: u32 = SIZE
Page size. May be any number power of two in interval [1, u32::MAX].
\nsourcepub const UPPER: Self = _
Max possible page number in 4GB memory.
\nNote: const computation contains checking in order to prevent incorrect SIZE.
\nsourcepub fn inc(&self) -> PagesAmount<SIZE>
Increment page number. Returns PagesAmount<SIZE>
, because this allows to avoid overflows.
\nsourcepub fn from_offset(offset: u32) -> Self
Constructs new page from byte offset: returns page which contains this byte.
\nsourcepub fn end_offset(&self) -> u32
Returns page last byte offset.
\nsourcepub fn to_page<const S1: u32>(self) -> Page<S1>
Returns new page, which contains self
zero byte.
\nsourcepub fn to_iter<const S1: u32>(self) -> IntervalIterator<Page<S1>>
Returns an iterator that iterates over the range of pages from self
to the end page,\ninclusive. Each iteration yields a page of type Page<S1>
.
\n§Example
\nuse gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
\nFor this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]
\n",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>
","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> PartialOrd for Page<SIZE>
","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> UpperBounded for Page<SIZE>
","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Copy for Page<SIZE>
","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> EncodeLike for Page<SIZE>
","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> Eq for Page<SIZE>
","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["source§impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>
","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
index 3e52546cb71..547ab8d0aa2 100644
--- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
+++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"pallet_gear":[["source§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
source§fn gas_amount(&self) -> GasAmount
","BackendExternalities","pallet_gear::Ext"],["source§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
source§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.source§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.source§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.source§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.source§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["source§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.source§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read moresource§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.source§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.source§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.source§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.source§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.source§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.source§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.source§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.source§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.source§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.source§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.source§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.source§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.source§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.source§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.source§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.source§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.source§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.source§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.source§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.source§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itselfsource§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read moresource§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read moresource§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read moresource§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.source§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.source§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.source§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.source§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.source§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.source§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.source§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.source§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.source§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.source§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.source§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.source§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.source§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.source§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["source§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\nsource§fn new(context: ProcessorContext) -> Ext<LP>
Create newsource§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.source§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no datasource§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actionssource§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
+"pallet_gear":[["§impl<LP> BackendExternalities for Ext<LP>where\n LP: LazyPagesInterface,
§fn gas_amount(&self) -> GasAmount
§fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>
Pre-process memory access if needed.","BackendExternalities","pallet_gear::Ext"],["§impl<LP> CountersOwner for Ext<LP>where\n LP: LazyPagesInterface,
§fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>
Charge for runtime api call.§fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>
Charge gas if enough, else just returns error.§fn current_counter_type(&self) -> CounterType
Currently set gas counter type.§fn decrease_current_counter_to(&mut self, amount: u64)
Decreases gas left by fetched single numeric of actual counter.§fn define_current_counter(&mut self) -> u64
Returns minimal amount of gas counters and set the type of current counter.§fn current_counter_value(&self) -> u64
Returns value of gas counter currently set.","CountersOwner","pallet_gear::Ext"],["§impl<LP> Externalities for Ext<LP>where\n LP: LazyPagesInterface,
§type UnrecoverableError = UnrecoverableExtError
An error issued in infallible syscall.§type FallibleError = FallibleExtError
An error issued in fallible syscall.§type AllocError = AllocExtError
An error issued during allocation.§fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>
Allocate number of pages. Read more§fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific page.§fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>
Free specific memory range.§fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>
Get environment variables currently set in the system and in the form\ncorresponded to the requested version.§fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block height.§fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Get the current block timestamp.§fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>
Initialize a new incomplete message for another program and return its handle.§fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into message payload by handle.§fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into message payload by handle.§fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program.§fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete message and send it to another program using gas from reservation.§fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push an extra buffer into reply message.§fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program.§fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Complete reply message and send it to source program from reservation.§fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id of the initial message.§fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>
Get the message id which signal issues from.§fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Push the incoming message buffer into reply message.§fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the source of the message currently being handled.§fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>
Get the reply code if the message being processed.§fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>
Get the signal code if the message being processed.§fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of the message currently being handled.§fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>
Get the id of program itself§fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Send debug message. Read more§fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>
Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock
], which acts\nlike lock. Read more§fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound
Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more§fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>
Size of currently handled message payload.§fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>
Reserve some gas for a few blocks.§fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>
Unreserve gas using reservation ID.§fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Do system reservation.§fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much gas is left in running context.§fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Value associated with message.§fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>
Tell how much value is left in running context.§fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum.§fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution in duration.§fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>
Interrupt the program and reschedule execution for maximum,\nbut not more than duration.§fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Wake the waiting message and move it to the processing queue.§fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>
Send init message to create a new program.§fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>
Create deposit to handle reply on given message.§fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>
Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.§fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>
Return the set of functions that are forbidden to be called.§fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program.§fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>
Send message to another program using gas from reservation.§fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message.§fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>
Produce reply to the current message from reservation.","Externalities","pallet_gear::Ext"],["§impl<LP> ProcessorExternalities for Ext<LP>where\n LP: LazyPagesInterface,
Empty implementation for non-substrate (and non-lazy-pages) using
\n§fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>
Convert externalities into info.§fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)
Protect and save storage keys for pages which has no data§fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)
Lazy pages program post execution actions§fn lazy_pages_status() -> Status
Returns lazy pages status","ProcessorExternalities","pallet_gear::Ext"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file
diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index bc4729526fb..233c063f7da 100644
--- a/pr-4132/type.impl/gprimitives/struct.ActorId.js
+++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"gear_common":[["§impl ActorIdExt for ActorId
§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.§fn generate_from_program(\n message_id: MessageId,\n code_id: CodeId,\n salt: &[u8],\n) -> ActorId
Generates ActorId
from given MessageId
, CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
+"gear_common":[["source§impl ActorIdExt for ActorId
source§fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId
Generates ActorId
from given CodeId
and salt
.","ActorIdExt","gear_common::ProgramId"],["§impl ActorId
pub fn into_bytes(self) -> [u8; 32]
Returns ActorId
as bytes array.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl ActorId
pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with default ss58 version.
\npub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>
Returns the ss58-check address with given ss58 version.
\npub fn to_address_lossy(&self) -> H160
Returns [H160
] with possible loss of the first 12 bytes.
\n",0,"gear_common::ProgramId"],["§impl ActorId
",0,"gear_common::ProgramId"],["§impl<__AsMutT> AsMut<__AsMutT> for ActorId
§fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.","AsMut<__AsMutT>","gear_common::ProgramId"],["","AsRef<__AsRefT>","gear_common::ProgramId"],["","Clone","gear_common::ProgramId"],["","Debug","gear_common::ProgramId"],["§impl Decode for ActorId
§fn decode<__CodecInputEdqy>(\n __codec_input_edqy: &mut __CodecInputEdqy,\n) -> Result<ActorId, Error>where\n __CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(\n input: &mut I,\n dst: &mut MaybeUninit<Self>,\n) -> Result<DecodeFinished, Error>where\n I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where\n I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more","Decode","gear_common::ProgramId"],["","Default","gear_common::ProgramId"],["","Display","gear_common::ProgramId"],["§impl Encode for ActorId
§fn encode_to<__CodecOutputEdqy>(\n &self,\n __codec_dest_edqy: &mut __CodecOutputEdqy,\n)where\n __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more","Encode","gear_common::ProgramId"],["","From<[u8; 32]>","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","From","gear_common::ProgramId"],["","FromStr","gear_common::ProgramId"],["","Hash","gear_common::ProgramId"],["§impl MaxEncodedLen for ActorId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.","MaxEncodedLen","gear_common::ProgramId"],["§impl Ord for ActorId
","Ord","gear_common::ProgramId"],["","PartialEq","gear_common::ProgramId"],["§impl PartialOrd for ActorId
","PartialOrd","gear_common::ProgramId"],["","TryFrom<&[u8]>","gear_common::ProgramId"],["§impl TypeInfo for ActorId
","TypeInfo","gear_common::ProgramId"],["§impl Copy for ActorId
","Copy","gear_common::ProgramId"],["§impl EncodeLike for ActorId
","EncodeLike","gear_common::ProgramId"],["§impl Eq for ActorId
","Eq","gear_common::ProgramId"],["§impl StructuralPartialEq for ActorId
","StructuralPartialEq","gear_common::ProgramId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file