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
§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>
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>
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 cf2dfd7c396..1ecb9f12593 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 c0d71306da5..a8724f29033 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 3b9c7ddca0c..4f47a136aa1 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
source · #[repr(u8)]pub enum LockId {
+LockId in gear_common - Rust Enum gear_common::LockId
#[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§
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§
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§
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 af006d91c3a..48d732f13bb 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
source · pub enum Program<BlockNumber>where
+Program in gear_common - Rust Enum gear_common::Program
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§
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§
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§
§impl<BlockNumber> Decode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Decode,
source§fn decode<__CodecInputEdqy>(
+ ActiveProgram<BlockNumber>: Decode,
§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 moresource§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 more§impl<BlockNumber> Encode for Program<BlockNumber>where
BlockNumber: Copy,
- 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>(
+ ActiveProgram<BlockNumber>: Encode,
§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 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.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,
source§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.
§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
BlockNumber: Copy + TypeInfo + 'static,
- ActiveProgram<BlockNumber>: TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
source§impl<BlockNumber> Eq for Program<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: Encode,
§impl<BlockNumber> Eq for Program<BlockNumber>
§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 b04b5dbbb40..f998d51382e 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§fn from(src: MessageWaitedType) -> Self
Converts to this type from the input type.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§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 8a6bf445930..ac2af343449 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
source · #[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[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§
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§
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§
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 3916a913113..fba6676ea3c 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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 cf2dfd7c396..1ecb9f12593 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 c0d71306da5..a8724f29033 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 3b9c7ddca0c..4f47a136aa1 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
source · #[repr(u8)]pub enum LockId {
+LockId in gear_common - Rust Enum gear_common::LockId
#[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§
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§
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§
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 af006d91c3a..48d732f13bb 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
source · pub enum Program<BlockNumber>where
+Program in gear_common - Rust Enum gear_common::Program
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§
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§
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§
§impl<BlockNumber> Decode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Decode,
source§fn decode<__CodecInputEdqy>(
+ ActiveProgram<BlockNumber>: Decode,
§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 moresource§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 more§impl<BlockNumber> Encode for Program<BlockNumber>where
BlockNumber: Copy,
- 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>(
+ ActiveProgram<BlockNumber>: Encode,
§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 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.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,
source§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.
§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
BlockNumber: Copy + TypeInfo + 'static,
- ActiveProgram<BlockNumber>: TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
source§impl<BlockNumber> Eq for Program<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: Encode,
§impl<BlockNumber> Eq for Program<BlockNumber>
§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 b04b5dbbb40..f998d51382e 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§fn from(src: MessageWaitedType) -> Self
Converts to this type from the input type.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§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 8a6bf445930..ac2af343449 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
source · #[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[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§
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§
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§
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 3916a913113..fba6676ea3c 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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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
source · #[repr(u8)]pub enum LockId {
+LockId in gear_common - Rust Enum gear_common::LockId
#[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§
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§
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§
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 af006d91c3a..48d732f13bb 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
source · pub enum Program<BlockNumber>where
+Program in gear_common - Rust Enum gear_common::Program
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§
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§
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§
§impl<BlockNumber> Decode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Decode,
source§fn decode<__CodecInputEdqy>(
+ ActiveProgram<BlockNumber>: Decode,
§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 moresource§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 more§impl<BlockNumber> Encode for Program<BlockNumber>where
BlockNumber: Copy,
- 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>(
+ ActiveProgram<BlockNumber>: Encode,
§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 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.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,
source§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.
§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
BlockNumber: Copy + TypeInfo + 'static,
- ActiveProgram<BlockNumber>: TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
source§impl<BlockNumber> Eq for Program<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: Encode,
§impl<BlockNumber> Eq for Program<BlockNumber>
§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 b04b5dbbb40..f998d51382e 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§fn from(src: MessageWaitedType) -> Self
Converts to this type from the input type.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§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 8a6bf445930..ac2af343449 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
source · #[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[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§
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§
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§
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 3916a913113..fba6676ea3c 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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 af006d91c3a..48d732f13bb 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
source · pub enum Program<BlockNumber>where
+Program in gear_common - Rust Enum gear_common::Program
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§
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§
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§
§impl<BlockNumber> Decode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Decode,
source§fn decode<__CodecInputEdqy>(
+ ActiveProgram<BlockNumber>: Decode,
§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 moresource§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 more§impl<BlockNumber> Encode for Program<BlockNumber>where
BlockNumber: Copy,
- 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>(
+ ActiveProgram<BlockNumber>: Encode,
§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 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.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,
source§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.
§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
BlockNumber: Copy + TypeInfo + 'static,
- ActiveProgram<BlockNumber>: TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
source§impl<BlockNumber> Eq for Program<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: Encode,
§impl<BlockNumber> Eq for Program<BlockNumber>
§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 b04b5dbbb40..f998d51382e 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§fn from(src: MessageWaitedType) -> Self
Converts to this type from the input type.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§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 8a6bf445930..ac2af343449 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
source · #[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[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§
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§
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§
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 3916a913113..fba6676ea3c 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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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
source · pub enum Program<BlockNumber>where
+Program in gear_common - Rust Enum gear_common::Program
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§
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§
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§
§impl<BlockNumber> Decode for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Decode,
source§fn decode<__CodecInputEdqy>(
+ ActiveProgram<BlockNumber>: Decode,
§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 moresource§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 more§impl<BlockNumber> Encode for Program<BlockNumber>where
BlockNumber: Copy,
- 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>(
+ ActiveProgram<BlockNumber>: Encode,
§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 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.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,
source§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
+) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>Performs the conversion.
§impl<BlockNumber> TypeInfo for Program<BlockNumber>where
BlockNumber: Copy + TypeInfo + 'static,
- ActiveProgram<BlockNumber>: TypeInfo + 'static,
source§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: TypeInfo + 'static,
§impl<BlockNumber> EncodeLike for Program<BlockNumber>where
BlockNumber: Copy,
- ActiveProgram<BlockNumber>: Encode,
source§impl<BlockNumber> Eq for Program<BlockNumber>
source§impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>where
+ ActiveProgram<BlockNumber>: Encode,
§impl<BlockNumber> Eq for Program<BlockNumber>
§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 b04b5dbbb40..f998d51382e 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§fn from(src: MessageWaitedType) -> Self
Converts to this type from the input type.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§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§fn from(src: MessageWaitedType) -> Self
fn from(src: MessageWaitedType) -> Self
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§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 8a6bf445930..ac2af343449 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
source · #[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[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§
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§
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§
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 3916a913113..fba6676ea3c 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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 8a6bf445930..ac2af343449 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
source · #[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[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§
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§
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§
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 3916a913113..fba6676ea3c 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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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
source · #[repr(u8)]pub enum LockId {
+LockId in gear_common::gas_provider - Rust Enum gear_common::gas_provider::LockId
#[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§
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§
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§
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 3916a913113..fba6676ea3c 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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 3916a913113..fba6676ea3c 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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 e2605931597..d8e22f5089b 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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 141f217501a..7d29922ebe2 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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
§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
+
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
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 b072394addd..8841df7d515 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 6f66a7c44e2..321d5a8f516 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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 15c1fd157e9..05cedcc41bd 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 c2eb84b2393..52f7fcaaf0f 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 90fab4707a5..9551e8ba077 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 c2eb84b2393..52f7fcaaf0f 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 c2eb84b2393..52f7fcaaf0f 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
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
+
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
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 b072394addd..8841df7d515 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 b072394addd..8841df7d515 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
source · pub struct ActiveProgram<BlockNumber>where
+ActiveProgram in gear_common - Rust Struct gear_common::ActiveProgram
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§
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,
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,
§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 moresource§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 more§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>where
+ BlockNumber: Copy + Encode,
§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 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.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,
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
+) -> 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
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 75c1739ce2b..5c527ef1109 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
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>(
+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>(
__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 moresource§impl Default for MemoryInfix
source§fn default() -> MemoryInfix
Returns the “default value” for a type. Read moresource§impl Encode for MemoryInfix
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§impl Encode for MemoryInfix
§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.source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
+ __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§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
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§
§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<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 b4968b2fa3d..23d057c7109 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.source§impl MessageIdExt for MessageId
source§fn generate_from_user(
+ Self: Sized,
§impl MaxEncodedLen for MessageId
§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.§impl MessageIdExt for MessageId
§fn generate_from_user(
block_number: u32,
user_id: ActorId,
local_nonce: u128,
-) -> MessageId
Generates 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
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+) -> MessageIdGenerates 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
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 699ff414e4c..91aa23b704a 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
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 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
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§
source§impl Decode for PageBuf
Trait Implementations§
§impl Decode for PageBuf
§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
+ 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 Encode for PageBuf
§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 moresource§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§
§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<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 2a6cea59b11..d0d4addcc85 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
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 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§
§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 2f46fe46053..afa178bc6e3 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
source · 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
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 4778f5505a1..335d9e5c1d3 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
source · pub type ProgramId = ActorId;
Expand description
Program identifier.
+ProgramId in gear_common - Rust Type Alias gear_common::ProgramId
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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
index cc11f70a1d4..e182c7b671a 100644
--- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
+++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html
@@ -1,4 +1,4 @@
-GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
pub trait GearRuntimeApi<Block>: Core<Block>where
+GearRuntimeApi in pallet_gear_rpc - Rust Trait pallet_gear_rpc::GearRuntimeApi
source · pub trait GearRuntimeApi<Block>: Core<Block>where
Block: Block,{
// Provided methods
fn calculate_reply_for_handle(
@@ -80,7 +80,7 @@
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
) -> Result<Result<H256, Vec<u8>>, ApiError> { ... }
-}
Provided Methods§
fn calculate_reply_for_handle(
+}Provided Methods§
sourcefn calculate_reply_for_handle(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
origin: H256,
@@ -89,7 +89,7 @@
gas_limit: u64,
value: u128,
allowance_multiplier: u64,
-) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
fn calculate_gas_info(
+) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>
sourcefn calculate_gas_info(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -99,18 +99,18 @@
allow_other_panics: bool,
initial_gas: Option<u64>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
fn gear_run_extrinsic(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
sourcefn gear_run_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
max_gas: Option<u64>,
) -> Result<<Block as Block>::Extrinsic, ApiError>
Generate inherent-like extrinsic that runs message queue processing.
-fn read_state(
+
sourcefn read_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_state_using_wasm(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_state_using_wasm(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -119,12 +119,12 @@
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
allowance_multiplier: Option<u64>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
fn read_metahash(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
sourcefn read_metahash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
allowance_multiplier: Option<u64>,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
fn calculate_gas_info_before_version_2(
+) -> Result<Result<H256, Vec<u8>>, ApiError>
sourcefn calculate_gas_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
source: H256,
@@ -133,12 +133,12 @@
value: u128,
allow_other_panics: bool,
initial_gas: Option<u64>,
-) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_before_version_2(
+) -> Result<Result<GasInfo, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
payload: Vec<u8>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_state_using_wasm_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_state_using_wasm_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
@@ -146,9 +146,9 @@
fn_name: Vec<u8>,
wasm: Vec<u8>,
argument: Option<Vec<u8>>,
-) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedfn read_metahash_before_version_2(
+) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>
👎Deprecatedsourcefn read_metahash_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
program_id: H256,
-) -> Result<Result<H256, Vec<u8>>, ApiError>
👎Deprecated
Trait Implementations§
Implementors§
\ No newline at end of file
+) -> Result<Result<H256, Vec<u8>>, ApiError>👎DeprecatedTrait Implementations§
Implementors§
\ 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 78a1e09d462..6bc608963b1 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 e0b14d44d85..f782e7e86b9 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 dacfab49860..f6350d8009b 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 ff83ce886ab..78e5d8051d3 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 f74f1614998..dd3710fb157 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/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js
index f8e9a1e041d..a0d449ea8ac 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/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js
index 1b5be40ec92..3ee80c804ae 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":[["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"]]
+"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"]]
};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 ab165e51afb..fb9c4e65442 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"],["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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js
index 233c063f7da..bc4729526fb 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":[["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"]]
+"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"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file