diff --git a/pr-4132/gear_common/auxiliary/mailbox/struct.MailboxStorageWrap.html b/pr-4132/gear_common/auxiliary/mailbox/struct.MailboxStorageWrap.html index 30b5907c4fe..cf7f0c1dde6 100644 --- a/pr-4132/gear_common/auxiliary/mailbox/struct.MailboxStorageWrap.html +++ b/pr-4132/gear_common/auxiliary/mailbox/struct.MailboxStorageWrap.html @@ -1,5 +1,5 @@ MailboxStorageWrap in gear_common::auxiliary::mailbox - Rust

Struct gear_common::auxiliary::mailbox::MailboxStorageWrap

source ·
pub struct MailboxStorageWrap;
Expand description

Mailbox double storage map manager.

-

Trait Implementations§

source§

impl CountedByKey for MailboxStorageWrap

§

type Key = ActorId

Key type of counting target.
§

type Length = usize

Returning length type.
source§

fn len(key: &Self::Key) -> Self::Length

Returns current Self’s amount of elements as Length type.
source§

fn is_empty(key: &Self::Key) -> bool

Returns bool, defining if Self doesn’t contain elements.
source§

impl DoubleMapStorage for MailboxStorageWrap

§

type Key1 = ActorId

Map’s first key type.
§

type Key2 = MessageId

Map’s second key type.
§

type Value = (UserStoredMessage, Interval<u32>)

Map’s stored value type.
source§

fn contains_keys(key1: &Self::Key1, key2: &Self::Key2) -> bool

Returns bool, defining does map contain value under given keys.
source§

fn get(key1: &Self::Key1, key2: &Self::Key2) -> Option<Self::Value>

Gets value stored under given keys, if present.
source§

fn insert(key1: Self::Key1, key2: Self::Key2, value: Self::Value)

Inserts value with given keys.
source§

fn mutate<R, F: FnOnce(&mut Option<Self::Value>) -> R>( +

Trait Implementations§

source§

impl CountedByKey for MailboxStorageWrap

§

type Key = ActorId

Key type of counting target.
§

type Length = usize

Returning length type.
source§

fn len(key: &Self::Key) -> Self::Length

Returns current Self’s amount of elements as Length type.
source§

fn is_empty(key: &Self::Key) -> bool

Returns bool, defining if Self doesn’t contain elements.
source§

impl DoubleMapStorage for MailboxStorageWrap

§

type Key1 = ActorId

Map’s first key type.
§

type Key2 = MessageId

Map’s second key type.
§

type Value = (UserStoredMessage, Interval<u32>)

Map’s stored value type.
source§

fn contains_keys(key1: &Self::Key1, key2: &Self::Key2) -> bool

Returns bool, defining does map contain value under given keys.
source§

fn get(key1: &Self::Key1, key2: &Self::Key2) -> Option<Self::Value>

Gets value stored under given keys, if present.
source§

fn insert(key1: Self::Key1, key2: Self::Key2, value: Self::Value)

Inserts value with given keys.
source§

fn mutate<R, F: FnOnce(&mut Option<Self::Value>) -> R>( _key1: Self::Key1, _key2: Self::Key2, _f: F, @@ -9,7 +9,7 @@ key1: Self::Key1, key2: Self::Key2, f: F, -) -> Option<R>

Works the same as Self::mutate, but triggers if value present.
source§

impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap

§

type Key = ActorId

Map’s first key type.
§

type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>

Removal iterator type.
§

type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>

Getting iterator type.
source§

fn drain_key(key: Self::Key) -> Self::DrainIter

Creates the removal iterator over double map Items.
source§

fn iter_key(key: Self::Key) -> Self::Iter

Creates the getting iterator over double map Items.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Option<R>

Works the same as Self::mutate, but triggers if value present.
source§

impl IterableByKeyMap<(UserStoredMessage, Interval<u32>)> for MailboxStorageWrap

§

type Key = ActorId

Map’s first key type.
§

type DrainIter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>

Removal iterator type.
§

type Iter = IteratorWrap<IntoIter<MessageId, (UserStoredMessage, Interval<u32>)>, (UserStoredMessage, Interval<u32>), GetSecondPos>

Getting iterator type.
source§

fn drain_key(key: Self::Key) -> Self::DrainIter

Creates the removal iterator over double map Items.
source§

fn iter_key(key: Self::Key) -> Self::Iter

Creates the getting iterator over double map Items.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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/auxiliary/mailbox/type.MailboxedMessage.html b/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html index 1ecb9f12593..cf2dfd7c396 100644 --- a/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html +++ b/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html @@ -1,2 +1,2 @@ -MailboxedMessage in gear_common::auxiliary::mailbox - Rust

Type Alias gear_common::auxiliary::mailbox::MailboxedMessage

source ·
pub type MailboxedMessage = UserStoredMessage;
Expand description

Type represents message stored in the mailbox.

+MailboxedMessage in gear_common::auxiliary::mailbox - Rust

Type Alias gear_common::auxiliary::mailbox::MailboxedMessage

source ·
pub type MailboxedMessage = UserStoredMessage;
Expand description

Type represents message stored in the mailbox.

Aliased Type§

struct MailboxedMessage { /* private fields */ }
\ No newline at end of file diff --git a/pr-4132/gear_common/code_storage/trait.CodeStorage.html b/pr-4132/gear_common/code_storage/trait.CodeStorage.html index a8724f29033..c0d71306da5 100644 --- a/pr-4132/gear_common/code_storage/trait.CodeStorage.html +++ b/pr-4132/gear_common/code_storage/trait.CodeStorage.html @@ -1,5 +1,5 @@ CodeStorage in gear_common::code_storage - Rust

Trait gear_common::code_storage::CodeStorage

source ·
pub trait CodeStorage {
-    type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
+    type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>;
     type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>;
     type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>;
     type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>;
@@ -7,19 +7,19 @@
     // Provided methods
     fn reset() { ... }
     fn add_code(
-        code_and_id: CodeAndId,
+        code_and_id: CodeAndId,
         metadata: CodeMetadata,
     ) -> Result<(), Error> { ... }
-    fn update_code(code_and_id: InstrumentedCodeAndId) { ... }
+    fn update_code(code_and_id: InstrumentedCodeAndId) { ... }
     fn exists(code_id: CodeId) -> bool { ... }
     fn remove_code(code_id: CodeId) -> bool { ... }
-    fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { ... }
+    fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { ... }
     fn get_code_len(code_id: CodeId) -> Option<u32> { ... }
     fn get_original_code(code_id: CodeId) -> Option<Vec<u8>> { ... }
     fn get_metadata(code_id: CodeId) -> Option<CodeMetadata> { ... }
 }
Expand description

Trait to work with program binary codes in a storage.

-

Required Associated Types§

Provided Methods§

source

fn reset()

Attempt to remove all items from all the associated maps.

-
source

fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error>

source

fn update_code(code_and_id: InstrumentedCodeAndId)

Update the corresponding code in the storage.

+

Required Associated Types§

Provided Methods§

source

fn reset()

Attempt to remove all items from all the associated maps.

+
source

fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error>

source

fn update_code(code_and_id: InstrumentedCodeAndId)

Update the corresponding code in the storage.

source

fn exists(code_id: CodeId) -> bool

source

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.

-
source

fn get_code(code_id: CodeId) -> Option<InstrumentedCode>

source

fn get_code_len(code_id: CodeId) -> Option<u32>

source

fn get_original_code(code_id: CodeId) -> Option<Vec<u8>>

source

fn get_metadata(code_id: CodeId) -> Option<CodeMetadata>

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file +
source

fn get_code(code_id: CodeId) -> Option<InstrumentedCode>

source

fn get_code_len(code_id: CodeId) -> Option<u32>

source

fn get_original_code(code_id: CodeId) -> Option<Vec<u8>>

source

fn get_metadata(code_id: CodeId) -> Option<CodeMetadata>

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/pr-4132/gear_common/enum.LockId.html b/pr-4132/gear_common/enum.LockId.html index 4f47a136aa1..3b9c7ddca0c 100644 --- a/pr-4132/gear_common/enum.LockId.html +++ b/pr-4132/gear_common/enum.LockId.html @@ -1,4 +1,4 @@ -LockId in gear_common - Rust

Enum gear_common::LockId

#[repr(u8)]
pub enum LockId { +LockId in gear_common - Rust

Enum gear_common::LockId

source ·
#[repr(u8)]
pub enum LockId { Mailbox = 0, Waitlist = 1, Reservation = 2, @@ -8,8 +8,8 @@
§

Waitlist = 1

The gas lock is provided by the waitlist.

§

Reservation = 2

The gas lock is provided by reservation.

§

DispatchStash = 3

The gas lock is provided by dispatch stash.

-

Trait Implementations§

§

impl Clone for LockId

§

fn clone(&self) -> LockId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for LockId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<Balance> Index<LockId> for NodeLock<Balance>

§

type Output = Balance

The returned type after indexing.
source§

fn index(&self, index: LockId) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<Balance> IndexMut<LockId> for NodeLock<Balance>

source§

fn index_mut(&mut self, index: LockId) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
§

impl PartialEq for LockId

§

fn eq(&self, other: &LockId) -> 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, -and should not be overridden without very good reason.
§

impl Sequence for LockId

§

const CARDINALITY: usize = 4usize

Number of values of type Self. Read more
§

fn next(&self) -> Option<LockId>

Returns value following *self or None if this was the end. Read more
§

fn previous(&self) -> Option<LockId>

Returns value preceding *self or None if this was the beginning. Read more
§

fn first() -> Option<LockId>

Returns the first value of type Self. Read more
§

fn last() -> Option<LockId>

Returns the last value of type Self. Read more
source§

impl TryFrom<StorageType> for LockId

§

type Error = TryFromStorageTypeError

The type returned in the event of a conversion error.
source§

fn try_from(storage: StorageType) -> Result<Self, Self::Error>

Performs the conversion.
§

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> Any for T
where +

Trait Implementations§

source§

impl Clone for LockId

source§

fn clone(&self) -> LockId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LockId

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<Balance> Index<LockId> for NodeLock<Balance>

§

type Output = Balance

The returned type after indexing.
source§

fn index(&self, index: LockId) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<Balance> IndexMut<LockId> for NodeLock<Balance>

source§

fn index_mut(&mut self, index: LockId) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl PartialEq for LockId

source§

fn eq(&self, other: &LockId) -> 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, +and should not be overridden without very good reason.
source§

impl Sequence for LockId

source§

const CARDINALITY: usize = 4usize

Number of values of type Self. Read more
source§

fn next(&self) -> Option<LockId>

Returns value following *self or None if this was the end. Read more
source§

fn previous(&self) -> Option<LockId>

Returns value preceding *self or None if this was the beginning. Read more
source§

fn first() -> Option<LockId>

Returns the first value of type Self. Read more
source§

fn last() -> Option<LockId>

Returns the last value of type Self. Read more
source§

impl TryFrom<StorageType> for LockId

§

type Error = TryFromStorageTypeError

The type returned in the event of a conversion error.
source§

fn try_from(storage: StorageType) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for LockId

source§

impl Eq for LockId

source§

impl StructuralPartialEq for LockId

Auto Trait Implementations§

§

impl Freeze for LockId

§

impl RefUnwindSafe for LockId

§

impl Send for LockId

§

impl Sync for LockId

§

impl Unpin for LockId

§

impl UnwindSafe for LockId

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where diff --git a/pr-4132/gear_common/enum.Program.html b/pr-4132/gear_common/enum.Program.html index 48d732f13bb..af006d91c3a 100644 --- a/pr-4132/gear_common/enum.Program.html +++ b/pr-4132/gear_common/enum.Program.html @@ -1,4 +1,4 @@ -Program in gear_common - Rust

Enum gear_common::Program

pub enum Program<BlockNumber>
where +Program in gear_common - Rust

Enum gear_common::Program

source ·
pub enum Program<BlockNumber>
where BlockNumber: Copy,
{ Active(ActiveProgram<BlockNumber>), Exited(ActorId), @@ -7,16 +7,16 @@

Variants§

§

Active(ActiveProgram<BlockNumber>)

Program in active state.

§

Exited(ActorId)

Program has been exited (gr_exit was called)

§

Terminated(ActorId)

Program has been terminated (init was failed)

-

Implementations§

§

impl<BlockNumber> Program<BlockNumber>
where - BlockNumber: Copy,

pub fn is_active(&self) -> bool

Returns whether the program is active.

-

pub fn is_exited(&self) -> bool

Returns whether the program is exited.

-

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> Clone for Program<BlockNumber>
where - BlockNumber: Clone + Copy,

§

fn clone(&self) -> Program<BlockNumber>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<BlockNumber> Debug for Program<BlockNumber>
where - BlockNumber: Debug + Copy,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<BlockNumber> Decode for Program<BlockNumber>
where +

Implementations§

source§

impl<BlockNumber> Program<BlockNumber>
where + BlockNumber: Copy,

source

pub fn is_active(&self) -> bool

Returns whether the program is active.

+
source

pub fn is_exited(&self) -> bool

Returns whether the program is exited.

+
source

pub fn is_terminated(&self) -> bool

Returns whether the program is terminated.

+
source

pub fn is_initialized(&self) -> bool

Returns whether the program is active and initialized.

+

Trait Implementations§

source§

impl<BlockNumber> Clone for Program<BlockNumber>
where + BlockNumber: Clone + Copy,

source§

fn clone(&self) -> Program<BlockNumber>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<BlockNumber> Debug for Program<BlockNumber>
where + BlockNumber: Debug + Copy,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<BlockNumber> Decode for Program<BlockNumber>
where BlockNumber: Copy, - ActiveProgram<BlockNumber>: Decode,

§

fn decode<__CodecInputEdqy>( + ActiveProgram<BlockNumber>: Decode,

source§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Program<BlockNumber>, Error>
where __CodecInputEdqy: Input,

Attempt to deserialise the value from input.
§

fn decode_into<I>( @@ -24,24 +24,24 @@ dst: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where - I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
§

impl<BlockNumber> Encode for Program<BlockNumber>
where + I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl<BlockNumber> Encode for Program<BlockNumber>
where BlockNumber: Copy, - ActiveProgram<BlockNumber>: Encode,

§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

fn encode_to<__CodecOutputEdqy>( + ActiveProgram<BlockNumber>: Encode,

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

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 encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where - F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
§

impl<BlockNumber> PartialEq for Program<BlockNumber>
where - BlockNumber: PartialEq + Copy,

§

fn eq(&self, other: &Program<BlockNumber>) -> 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, -and should not be overridden without very good reason.
§

impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>
where - BlockNumber: Copy,

§

type Error = InactiveProgramError

The type returned in the event of a conversion error.
§

fn try_from( + F: FnOnce(&[u8]) -> 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
source§

impl<BlockNumber> PartialEq for Program<BlockNumber>
where + BlockNumber: PartialEq + Copy,

source§

fn eq(&self, other: &Program<BlockNumber>) -> 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, +and should not be overridden without very good reason.
source§

impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>
where + BlockNumber: Copy,

§

type Error = InactiveProgramError

The type returned in the event of a conversion error.
source§

fn try_from( prog_with_status: Program<BlockNumber>, -) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>

Performs the conversion.
§

impl<BlockNumber> TypeInfo for Program<BlockNumber>
where +) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>

Performs the conversion.
source§

impl<BlockNumber> TypeInfo for Program<BlockNumber>
where BlockNumber: Copy + TypeInfo + 'static, - ActiveProgram<BlockNumber>: TypeInfo + 'static,

§

type Identity = Program<BlockNumber>

The type identifying for which type info is provided. Read more
§

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl<BlockNumber> EncodeLike for Program<BlockNumber>
where + ActiveProgram<BlockNumber>: TypeInfo + 'static,

§

type Identity = Program<BlockNumber>

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl<BlockNumber> EncodeLike for Program<BlockNumber>
where BlockNumber: Copy, - ActiveProgram<BlockNumber>: Encode,

§

impl<BlockNumber> Eq for Program<BlockNumber>
where - BlockNumber: Eq + Copy,

§

impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>
where + ActiveProgram<BlockNumber>: Encode,

source§

impl<BlockNumber> Eq for Program<BlockNumber>
where + BlockNumber: Eq + Copy,

source§

impl<BlockNumber> StructuralPartialEq for Program<BlockNumber>
where BlockNumber: Copy,

Auto Trait Implementations§

§

impl<BlockNumber> Freeze for Program<BlockNumber>
where BlockNumber: Freeze,

§

impl<BlockNumber> RefUnwindSafe for Program<BlockNumber>
where BlockNumber: RefUnwindSafe,

§

impl<BlockNumber> Send for Program<BlockNumber>
where diff --git a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html index f998d51382e..b04b5dbbb40 100644 --- a/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html +++ b/pr-4132/gear_common/event/enum.MessageWaitedRuntimeReason.html @@ -21,7 +21,7 @@ &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where - F: FnOnce(&[u8]) -> 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
source§

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

Tests for !=. The default implementation is almost always sufficient, + F: FnOnce(&[u8]) -> 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
source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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

§

type Identity = MessageWaitedRuntimeReason

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/pr-4132/gear_common/gas_provider/enum.LockId.html b/pr-4132/gear_common/gas_provider/enum.LockId.html index ac2af343449..8a6bf445930 100644 --- a/pr-4132/gear_common/gas_provider/enum.LockId.html +++ b/pr-4132/gear_common/gas_provider/enum.LockId.html @@ -1,4 +1,4 @@ -LockId in gear_common::gas_provider - Rust

Enum gear_common::gas_provider::LockId

#[repr(u8)]
pub enum LockId { +LockId in gear_common::gas_provider - Rust

Enum gear_common::gas_provider::LockId

source ·
#[repr(u8)]
pub enum LockId { Mailbox = 0, Waitlist = 1, Reservation = 2, @@ -8,8 +8,8 @@
§

Waitlist = 1

The gas lock is provided by the waitlist.

§

Reservation = 2

The gas lock is provided by reservation.

§

DispatchStash = 3

The gas lock is provided by dispatch stash.

-

Trait Implementations§

§

impl Clone for LockId

§

fn clone(&self) -> LockId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for LockId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<Balance> Index<LockId> for NodeLock<Balance>

§

type Output = Balance

The returned type after indexing.
source§

fn index(&self, index: LockId) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<Balance> IndexMut<LockId> for NodeLock<Balance>

source§

fn index_mut(&mut self, index: LockId) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
§

impl PartialEq for LockId

§

fn eq(&self, other: &LockId) -> 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, -and should not be overridden without very good reason.
§

impl Sequence for LockId

§

const CARDINALITY: usize = 4usize

Number of values of type Self. Read more
§

fn next(&self) -> Option<LockId>

Returns value following *self or None if this was the end. Read more
§

fn previous(&self) -> Option<LockId>

Returns value preceding *self or None if this was the beginning. Read more
§

fn first() -> Option<LockId>

Returns the first value of type Self. Read more
§

fn last() -> Option<LockId>

Returns the last value of type Self. Read more
source§

impl TryFrom<StorageType> for LockId

§

type Error = TryFromStorageTypeError

The type returned in the event of a conversion error.
source§

fn try_from(storage: StorageType) -> Result<Self, Self::Error>

Performs the conversion.
§

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> Any for T
where +

Trait Implementations§

source§

impl Clone for LockId

source§

fn clone(&self) -> LockId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LockId

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<Balance> Index<LockId> for NodeLock<Balance>

§

type Output = Balance

The returned type after indexing.
source§

fn index(&self, index: LockId) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<Balance> IndexMut<LockId> for NodeLock<Balance>

source§

fn index_mut(&mut self, index: LockId) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl PartialEq for LockId

source§

fn eq(&self, other: &LockId) -> 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, +and should not be overridden without very good reason.
source§

impl Sequence for LockId

source§

const CARDINALITY: usize = 4usize

Number of values of type Self. Read more
source§

fn next(&self) -> Option<LockId>

Returns value following *self or None if this was the end. Read more
source§

fn previous(&self) -> Option<LockId>

Returns value preceding *self or None if this was the beginning. Read more
source§

fn first() -> Option<LockId>

Returns the first value of type Self. Read more
source§

fn last() -> Option<LockId>

Returns the last value of type Self. Read more
source§

impl TryFrom<StorageType> for LockId

§

type Error = TryFromStorageTypeError

The type returned in the event of a conversion error.
source§

fn try_from(storage: StorageType) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for LockId

source§

impl Eq for LockId

source§

impl StructuralPartialEq for LockId

Auto Trait Implementations§

§

impl Freeze for LockId

§

impl RefUnwindSafe for LockId

§

impl Send for LockId

§

impl Sync for LockId

§

impl Unpin for LockId

§

impl UnwindSafe for LockId

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where diff --git a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html index fba6676ea3c..3916a913113 100644 --- a/pr-4132/gear_common/program_storage/trait.ProgramStorage.html +++ b/pr-4132/gear_common/program_storage/trait.ProgramStorage.html @@ -5,7 +5,7 @@ type AccountId: Eq + PartialEq; type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>; type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>; - type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>; + type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>;
Show 16 methods // Required method fn pages_final_prefix() -> [u8; 32]; @@ -28,10 +28,10 @@ memory_infix: MemoryInfix, pages: impl Iterator<Item = GearPage>, ) { ... } - fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... } + fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { ... } fn set_allocations( program_id: ProgramId, - allocations: IntervalsTree<WasmPage>, + allocations: IntervalsTree<WasmPage>, ) { ... } fn clear_allocations(program_id: ProgramId) { ... } fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix> { ... } @@ -57,7 +57,7 @@ ) { ... } fn clear_program_memory(program_id: ProgramId, memory_infix: MemoryInfix) { ... }
}
Expand description

Trait to work with program data in a storage.

-

Required Associated Types§

source

type InternalError: Error

source

type Error: From<Self::InternalError> + Debug

source

type BlockNumber: Copy + Saturating

source

type AccountId: Eq + PartialEq

source

type ProgramMap: MapStorage<Key = ProgramId, Value = Program<Self::BlockNumber>>

source

type MemoryPageMap: TripleMapStorage<Key1 = ProgramId, Key2 = MemoryInfix, Key3 = GearPage, Value = PageBuf>

source

type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>

Required Methods§

source

fn pages_final_prefix() -> [u8; 32]

Final full prefix that prefixes all keys of memory pages.

+

Required Associated Types§

Required Methods§

source

fn pages_final_prefix() -> [u8; 32]

Final full prefix that prefixes all keys of memory pages.

Provided Methods§

source

fn reset()

Attempt to remove all items from all the associated maps.

source

fn add_program( program_id: ProgramId, @@ -74,7 +74,7 @@ program_id: ProgramId, memory_infix: MemoryInfix, pages: impl Iterator<Item = GearPage>, -)

source

fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>

source

fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)

source

fn clear_allocations(program_id: ProgramId)

source

fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>

source

fn update_program_if_active<F, ReturnType>( +)

source

fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>>

source

fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>)

source

fn clear_allocations(program_id: ProgramId)

source

fn memory_infix(program_id: ProgramId) -> Option<MemoryInfix>

source

fn update_program_if_active<F, ReturnType>( program_id: ProgramId, update_action: F, ) -> Result<ReturnType, Self::Error>
where diff --git a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html index d8e22f5089b..e2605931597 100644 --- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html +++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html @@ -1,5 +1,5 @@ MailboxKeyGen in gear_common::storage - Rust

Struct gear_common::storage::MailboxKeyGen

source ·
pub struct MailboxKeyGen<T>(/* private fields */);
Expand description

Key generator for gear’s mailbox implementation.

-

Trait Implementations§

source§

impl<T: Origin> KeyFor for MailboxKeyGen<T>

§

type Key = (T, MessageId)

Generated key type.
§

type Value = UserStoredMessage

Value over which key should be generated type.
source§

fn key_for(value: &Self::Value) -> Self::Key

Generates key for given by reference Value.

Auto Trait Implementations§

§

impl<T> Freeze for MailboxKeyGen<T>

§

impl<T> RefUnwindSafe for MailboxKeyGen<T>
where +

Trait Implementations§

source§

impl<T: Origin> KeyFor for MailboxKeyGen<T>

§

type Key = (T, MessageId)

Generated key type.
§

type Value = UserStoredMessage

Value over which key should be generated type.
source§

fn key_for(value: &Self::Value) -> Self::Key

Generates key for given by reference Value.

Auto Trait Implementations§

§

impl<T> Freeze for MailboxKeyGen<T>

§

impl<T> RefUnwindSafe for MailboxKeyGen<T>
where T: RefUnwindSafe,

§

impl<T> Send for MailboxKeyGen<T>
where T: Send,

§

impl<T> Sync for MailboxKeyGen<T>
where T: Sync,

§

impl<T> Unpin for MailboxKeyGen<T>
where diff --git a/pr-4132/gear_common/storage/struct.QueueKeyGen.html b/pr-4132/gear_common/storage/struct.QueueKeyGen.html index 7d29922ebe2..141f217501a 100644 --- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html +++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html @@ -1,5 +1,5 @@ QueueKeyGen in gear_common::storage - Rust

Struct gear_common::storage::QueueKeyGen

source ·
pub struct QueueKeyGen;
Expand description

Key generator for gear’s message queue implementation.

-

Trait Implementations§

source§

impl KeyFor for QueueKeyGen

§

type Key = MessageId

Generated key type.
§

type Value = StoredDispatch

Value over which key should be generated type.
source§

fn key_for(value: &Self::Value) -> Self::Key

Generates key for given by reference Value.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl KeyFor for QueueKeyGen

§

type Key = MessageId

Generated key type.
§

type Value = StoredDispatch

Value over which key should be generated type.
source§

fn key_for(value: &Self::Value) -> Self::Key

Generates key for given by reference Value.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where diff --git a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html index 05cedcc41bd..15c1fd157e9 100644 --- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html +++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html @@ -1,5 +1,5 @@ WaitlistKeyGen in gear_common::storage - Rust

Struct gear_common::storage::WaitlistKeyGen

source ·
pub struct WaitlistKeyGen;
Expand description

Key generator for gear’s waitlist implementation.

-

Trait Implementations§

source§

impl KeyFor for WaitlistKeyGen

§

type Key = (ActorId, MessageId)

Generated key type.
§

type Value = StoredDispatch

Value over which key should be generated type.
source§

fn key_for(value: &Self::Value) -> Self::Key

Generates key for given by reference Value.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl KeyFor for WaitlistKeyGen

§

type Key = (ActorId, MessageId)

Generated key type.
§

type Value = StoredDispatch

Value over which key should be generated type.
source§

fn key_for(value: &Self::Value) -> Self::Key

Generates key for given by reference Value.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where diff --git a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html index 52f7fcaaf0f..c2eb84b2393 100644 --- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html +++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html @@ -52,4 +52,4 @@ key2: Self::Key2, f: F, ) -> Option<R>

Works the same as Self::mutate, but triggers if value present.

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DoubleMapStorage for MailboxStorageWrap

§

type Key1 = ActorId

§

type Key2 = MessageId

§

type Value = (UserStoredMessage, Interval<u32>)

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html index 9551e8ba077..90fab4707a5 100644 --- a/pr-4132/gear_common/storage/trait.IterableByKeyMap.html +++ b/pr-4132/gear_common/storage/trait.IterableByKeyMap.html @@ -15,7 +15,7 @@

source

type Iter: Iterator<Item = Item>

Getting iterator type.

Required Methods§

source

fn drain_key(key: Self::Key) -> Self::DrainIter

Creates the removal iterator over double map Items.

source

fn iter_key(key: Self::Key) -> Self::Iter

Creates the getting iterator over double map Items.

-

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 8841df7d515..b072394addd 100644 --- a/pr-4132/gear_common/storage/trait.KeyFor.html +++ b/pr-4132/gear_common/storage/trait.KeyFor.html @@ -10,4 +10,4 @@

Required Associated Types§

source

type Key

Generated key type.

source

type Value

Value over which key should be generated type.

Required Methods§

source

fn key_for(value: &Self::Value) -> Self::Key

Generates key for given by reference Value.

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl KeyFor for QueueKeyGen

§

type Key = MessageId

§

type Value = StoredDispatch

source§

impl KeyFor for WaitlistKeyGen

§

type Key = (ActorId, MessageId)

§

type Value = StoredDispatch

source§

impl<T: Origin> KeyFor for MailboxKeyGen<T>

§

type Key = (T, MessageId)

§

type Value = UserStoredMessage

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

source§

impl KeyFor for QueueKeyGen

source§

impl KeyFor for WaitlistKeyGen

§

type Key = (ActorId, MessageId)

§

type Value = StoredDispatch

source§

impl<T: Origin> KeyFor for MailboxKeyGen<T>

\ No newline at end of file diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html index 321d5a8f516..6f66a7c44e2 100644 --- a/pr-4132/gear_common/struct.ActiveProgram.html +++ b/pr-4132/gear_common/struct.ActiveProgram.html @@ -1,26 +1,26 @@ -ActiveProgram in gear_common - Rust

Struct gear_common::ActiveProgram

pub struct ActiveProgram<BlockNumber>
where +ActiveProgram in gear_common - Rust

Struct gear_common::ActiveProgram

source ·
pub struct ActiveProgram<BlockNumber>
where BlockNumber: Copy,
{ pub allocations_tree_len: u32, pub memory_infix: MemoryInfix, - pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>, + pub gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>, pub code_hash: H256, - pub code_exports: BTreeSet<DispatchKind>, - pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>, - pub state: ProgramState, + pub code_exports: BTreeSet<DispatchKind>, + pub static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>, + pub state: ProgramState, pub expiration_block: BlockNumber, }
Expand description

Active program in storage.

Fields§

§allocations_tree_len: u32

Continuous intervals amount in program allocations.

§memory_infix: MemoryInfix

Infix of memory pages storage (is used for memory wake after pausing)

-
§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>

Gas reservation map.

+
§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>

Gas reservation map.

§code_hash: H256

Code hash of the program.

-
§code_exports: BTreeSet<DispatchKind>

Set of supported dispatch kinds.

-
§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>

Amount of static pages.

-
§state: ProgramState

Initialization state of the program.

+
§code_exports: BTreeSet<DispatchKind>

Set of supported dispatch kinds.

+
§static_pages: PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>

Amount of static pages.

+
§state: ProgramState

Initialization state of the program.

§expiration_block: BlockNumber

Block number when the program will be expired.

-

Trait Implementations§

§

impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
where - BlockNumber: Clone + Copy,

§

fn clone(&self) -> ActiveProgram<BlockNumber>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
where - BlockNumber: Debug + Copy,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<BlockNumber> Decode for ActiveProgram<BlockNumber>
where - BlockNumber: Copy + Decode,

§

fn decode<__CodecInputEdqy>( +

Trait Implementations§

source§

impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
where + BlockNumber: Clone + Copy,

source§

fn clone(&self) -> ActiveProgram<BlockNumber>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<BlockNumber> Debug for ActiveProgram<BlockNumber>
where + BlockNumber: Debug + Copy,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<BlockNumber> Decode for ActiveProgram<BlockNumber>
where + BlockNumber: Copy + Decode,

source§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<ActiveProgram<BlockNumber>, Error>
where __CodecInputEdqy: Input,

Attempt to deserialise the value from input.
§

fn decode_into<I>( @@ -28,21 +28,21 @@ dst: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where - I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
§

impl<BlockNumber> Encode for ActiveProgram<BlockNumber>
where - BlockNumber: Copy + Encode,

§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

fn encode_to<__CodecOutputEdqy>( + I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl<BlockNumber> Encode for ActiveProgram<BlockNumber>
where + BlockNumber: Copy + Encode,

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

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 encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where - F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
§

impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
where - BlockNumber: PartialEq + Copy,

§

fn eq(&self, other: &ActiveProgram<BlockNumber>) -> 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, -and should not be overridden without very good reason.
§

impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>
where - BlockNumber: Copy,

§

type Error = InactiveProgramError

The type returned in the event of a conversion error.
§

fn try_from( + F: FnOnce(&[u8]) -> 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
source§

impl<BlockNumber> PartialEq for ActiveProgram<BlockNumber>
where + BlockNumber: PartialEq + Copy,

source§

fn eq(&self, other: &ActiveProgram<BlockNumber>) -> 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, +and should not be overridden without very good reason.
source§

impl<BlockNumber> TryFrom<Program<BlockNumber>> for ActiveProgram<BlockNumber>
where + BlockNumber: Copy,

§

type Error = InactiveProgramError

The type returned in the event of a conversion error.
source§

fn try_from( prog_with_status: Program<BlockNumber>, -) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>

Performs the conversion.
§

impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>
where - BlockNumber: Copy + TypeInfo + 'static,

§

type Identity = ActiveProgram<BlockNumber>

The type identifying for which type info is provided. Read more
§

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>
where - BlockNumber: Copy + Encode,

§

impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
where - BlockNumber: Eq + Copy,

§

impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>
where +) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>

Performs the conversion.
source§

impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>
where + BlockNumber: Copy + TypeInfo + 'static,

§

type Identity = ActiveProgram<BlockNumber>

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>
where + BlockNumber: Copy + Encode,

source§

impl<BlockNumber> Eq for ActiveProgram<BlockNumber>
where + BlockNumber: Eq + Copy,

source§

impl<BlockNumber> StructuralPartialEq for ActiveProgram<BlockNumber>
where BlockNumber: Copy,

Auto Trait Implementations§

§

impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>
where BlockNumber: Freeze,

§

impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>
where BlockNumber: RefUnwindSafe,

§

impl<BlockNumber> Send for ActiveProgram<BlockNumber>
where diff --git a/pr-4132/gear_common/struct.CodeId.html b/pr-4132/gear_common/struct.CodeId.html index a1f809bd4c0..ae23d273be6 100644 --- a/pr-4132/gear_common/struct.CodeId.html +++ b/pr-4132/gear_common/struct.CodeId.html @@ -12,7 +12,7 @@ [u8; 32]: AsMut<__AsMutT>, __AsMutT: ?Sized,

§

fn as_mut(&mut self) -> &mut __AsMutT

Converts this type into a mutable reference of the (usually inferred) input type.
§

impl<__AsRefT> AsRef<__AsRefT> for CodeId
where [u8; 32]: AsRef<__AsRefT>, - __AsRefT: ?Sized,

§

fn as_ref(&self) -> &__AsRefT

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for CodeId

§

fn clone(&self) -> CodeId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl CodeIdExt for CodeId

§

fn generate(code: &[u8]) -> CodeId

Generates CodeId from given code.
§

impl Debug for CodeId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Decode for CodeId

§

fn decode<__CodecInputEdqy>( + __AsRefT: ?Sized,

§

fn as_ref(&self) -> &__AsRefT

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for CodeId

§

fn clone(&self) -> CodeId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl CodeIdExt for CodeId

source§

fn generate(code: &[u8]) -> CodeId

Generates CodeId from given code.
§

impl Debug for CodeId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Decode for CodeId

§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<CodeId, Error>
where __CodecInputEdqy: Input,

Attempt to deserialise the value from input.
§

fn decode_into<I>( diff --git a/pr-4132/gear_common/struct.MemoryInfix.html b/pr-4132/gear_common/struct.MemoryInfix.html index 5c527ef1109..75c1739ce2b 100644 --- a/pr-4132/gear_common/struct.MemoryInfix.html +++ b/pr-4132/gear_common/struct.MemoryInfix.html @@ -1,7 +1,7 @@ -MemoryInfix in gear_common - Rust

Struct gear_common::MemoryInfix

pub struct MemoryInfix(/* private fields */);
Expand description

Struct defines infix of memory pages storage.

-

Implementations§

§

impl MemoryInfix

pub const fn new(value: u32) -> MemoryInfix

Constructing function from u32 number.

-

pub fn inner(&self) -> u32

Return inner u32 value.

-

Trait Implementations§

§

impl Clone for MemoryInfix

§

fn clone(&self) -> MemoryInfix

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for MemoryInfix

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Decode for MemoryInfix

§

fn decode<__CodecInputEdqy>( +MemoryInfix in gear_common - Rust

Struct gear_common::MemoryInfix

source ·
pub struct MemoryInfix(/* private fields */);
Expand description

Struct defines infix of memory pages storage.

+

Implementations§

source§

impl MemoryInfix

source

pub const fn new(value: u32) -> MemoryInfix

Constructing function from u32 number.

+
source

pub fn inner(&self) -> u32

Return inner u32 value.

+

Trait Implementations§

source§

impl Clone for MemoryInfix

source§

fn clone(&self) -> MemoryInfix

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MemoryInfix

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Decode for MemoryInfix

source§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<MemoryInfix, Error>
where __CodecInputEdqy: Input,

Attempt to deserialise the value from input.
§

fn decode_into<I>( @@ -9,16 +9,16 @@ dst: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where - I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
§

impl Default for MemoryInfix

§

fn default() -> MemoryInfix

Returns the “default value” for a type. Read more
§

impl Encode for MemoryInfix

§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

fn encode_to<__CodecOutputEdqy>( + I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl Default for MemoryInfix

source§

fn default() -> MemoryInfix

Returns the “default value” for a type. Read more
source§

impl Encode for MemoryInfix

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

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 encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>( + __CodecOutputEdqy: Output + ?Sized,

Convert self to a slice and append it to the destination.
source§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
source§

fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>( &self, f: __CodecUsingEncodedCallback, ) -> __CodecOutputReturn
where - __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 PartialEq for MemoryInfix

§

fn eq(&self, other: &MemoryInfix) -> 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, -and should not be overridden without very good reason.
§

impl TypeInfo for MemoryInfix

§

type Identity = MemoryInfix

The type identifying for which type info is provided. Read more
§

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl Copy for MemoryInfix

§

impl EncodeLike for MemoryInfix

§

impl Eq for MemoryInfix

§

impl StructuralPartialEq for MemoryInfix

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __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
source§

impl PartialEq for MemoryInfix

source§

fn eq(&self, other: &MemoryInfix) -> 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, +and should not be overridden without very good reason.
source§

impl TypeInfo for MemoryInfix

§

type Identity = MemoryInfix

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl Copy for MemoryInfix

source§

impl EncodeLike for MemoryInfix

source§

impl Eq for MemoryInfix

source§

impl StructuralPartialEq for MemoryInfix

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where diff --git a/pr-4132/gear_common/struct.MessageId.html b/pr-4132/gear_common/struct.MessageId.html index 23d057c7109..b4968b2fa3d 100644 --- a/pr-4132/gear_common/struct.MessageId.html +++ b/pr-4132/gear_common/struct.MessageId.html @@ -31,11 +31,11 @@ __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
§

impl From<[u8; 32]> for MessageId

§

fn from(original: [u8; 32]) -> MessageId

Converts to this type from the input type.
§

impl From<H256> for MessageId

§

fn from(h256: H256) -> MessageId

Converts to this type from the input type.
source§

impl<U> From<MessageId> for GasNodeId<MessageId, U>

source§

fn from(id: MessageId) -> Self

Converts to this type from the input type.
§

impl From<u64> for MessageId

§

fn from(value: u64) -> MessageId

Converts to this type from the input type.
§

impl FromStr for MessageId

§

type Err = ConversionError

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<MessageId, <MessageId as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl Hash for MessageId

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

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

Feeds a slice of this type into the given Hasher. 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( block_number: u32, user_id: ActorId, local_nonce: u128, -) -> MessageId

Generates MessageId for non-program outgoing message.
§

fn generate_outgoing(origin_msg_id: MessageId, local_nonce: u32) -> MessageId

Generates MessageId for program outgoing message.
§

fn generate_reply(origin_msg_id: MessageId) -> MessageId

Generates MessageId for reply message depend on status code. Read more
§

fn generate_signal(origin_msg_id: MessageId) -> MessageId

Generates MessageId for signal message depend on status code.
§

impl Ord for MessageId

§

fn cmp(&self, other: &MessageId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where +) -> 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 more
source§

fn generate_signal(origin_msg_id: MessageId) -> MessageId

Generates MessageId for signal message depend on status code.
§

impl Ord for MessageId

§

fn cmp(&self, other: &MessageId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl Origin for MessageId

source§

fn into_origin(self) -> H256

source§

fn from_origin(val: H256) -> Self

source§

fn cast<T: Origin>(self) -> T

§

impl PartialEq for MessageId

§

fn eq(&self, other: &MessageId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, diff --git a/pr-4132/gear_common/struct.PageBuf.html b/pr-4132/gear_common/struct.PageBuf.html index 91aa23b704a..699ff414e4c 100644 --- a/pr-4132/gear_common/struct.PageBuf.html +++ b/pr-4132/gear_common/struct.PageBuf.html @@ -1,7 +1,7 @@ -PageBuf in gear_common - Rust

Struct gear_common::PageBuf

pub struct PageBuf(/* private fields */);
Expand description

Buffer for gear page data.

-

Implementations§

§

impl PageBuf

pub fn new_zeroed() -> PageBuf

Returns new page buffer with zeroed data.

-

pub fn from_inner( - inner: LimitedVec<u8, IntoPageBufError, gear_core::::memory::PageBufInner::{constant#0}>, +PageBuf in gear_common - Rust

Struct gear_common::PageBuf

source ·
pub struct PageBuf(/* private fields */);
Expand description

Buffer for gear page data.

+

Implementations§

source§

impl PageBuf

source

pub fn new_zeroed() -> PageBuf

Returns new page buffer with zeroed data.

+
source

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§

§

impl Clone for PageBuf

§

fn clone(&self) -> PageBuf

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for PageBuf

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Decode for PageBuf

§

fn decode<I>(input: &mut I) -> Result<PageBuf, Error>
where +

Trait Implementations§

source§

impl Clone for PageBuf

source§

fn clone(&self) -> PageBuf

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PageBuf

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Decode for PageBuf

source§

fn decode<I>(input: &mut I) -> Result<PageBuf, Error>
where I: Input,

Attempt to deserialise the value from input.
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where - I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
§

impl Deref for PageBuf

§

type Target = [u8]

The resulting type after dereferencing.
§

fn deref(&self) -> &<PageBuf as Deref>::Target

Dereferences the value.
§

impl DerefMut for PageBuf

§

fn deref_mut(&mut self) -> &mut <PageBuf as Deref>::Target

Mutably dereferences the value.
§

impl Encode for PageBuf

§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

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
source§

impl Deref for PageBuf

§

type Target = [u8]

The resulting type after dereferencing.
source§

fn deref(&self) -> &<PageBuf as Deref>::Target

Dereferences the value.
source§

impl DerefMut for PageBuf

source§

fn deref_mut(&mut self) -> &mut <PageBuf as Deref>::Target

Mutably dereferences the value.
source§

impl Encode for PageBuf

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

fn encode_to<W>(&self, dest: &mut W)
where W: Output + ?Sized,

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where - F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
§

impl PartialEq for PageBuf

§

fn eq(&self, other: &PageBuf) -> 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, -and should not be overridden without very good reason.
§

impl TypeInfo for PageBuf

§

type Identity = PageBuf

The type identifying for which type info is provided. Read more
§

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl EncodeLike for PageBuf

§

impl Eq for PageBuf

§

impl StructuralPartialEq for PageBuf

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + F: FnOnce(&[u8]) -> 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
source§

impl PartialEq for PageBuf

source§

fn eq(&self, other: &PageBuf) -> 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, +and should not be overridden without very good reason.
source§

impl TypeInfo for PageBuf

§

type Identity = PageBuf

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl EncodeLike for PageBuf

source§

impl Eq for PageBuf

source§

impl StructuralPartialEq for PageBuf

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where diff --git a/pr-4132/gear_common/struct.ReservationId.html b/pr-4132/gear_common/struct.ReservationId.html index d0d4addcc85..2a6cea59b11 100644 --- a/pr-4132/gear_common/struct.ReservationId.html +++ b/pr-4132/gear_common/struct.ReservationId.html @@ -35,7 +35,7 @@ and should not be overridden without very good reason.

§

impl PartialOrd for ReservationId

§

fn partial_cmp(&self, other: &ReservationId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
§

impl ReservationIdExt for ReservationId

§

fn generate(msg_id: MessageId, nonce: u64) -> ReservationId

Generates ReservationId from given message and nonce.
§

impl TypeInfo for ReservationId

§

type Identity = ReservationId

The type identifying for which type info is provided. Read more
§

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl Copy for ReservationId

§

impl EncodeLike for ReservationId

§

impl Eq for ReservationId

§

impl StructuralPartialEq for ReservationId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +the >= operator. Read more

source§

impl ReservationIdExt for ReservationId

source§

fn generate(msg_id: MessageId, nonce: u64) -> ReservationId

Generates ReservationId from given message and nonce.
§

impl TypeInfo for ReservationId

§

type Identity = ReservationId

The type identifying for which type info is provided. Read more
§

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl Copy for ReservationId

§

impl EncodeLike for ReservationId

§

impl Eq for ReservationId

§

impl StructuralPartialEq for ReservationId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where diff --git a/pr-4132/gear_common/type.GearPage.html b/pr-4132/gear_common/type.GearPage.html index afa178bc6e3..2f46fe46053 100644 --- a/pr-4132/gear_common/type.GearPage.html +++ b/pr-4132/gear_common/type.GearPage.html @@ -1,2 +1,2 @@ -GearPage in gear_common - Rust

Type Alias gear_common::GearPage

pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description

Page of gear page size - 16 kiB.

+GearPage in gear_common - Rust

Type Alias gear_common::GearPage

source ·
pub type GearPage = Page<gear_core::::pages::GearPage::{constant#0}>;
Expand description

Page of gear page size - 16 kiB.

Aliased Type§

struct GearPage(/* private fields */);
\ No newline at end of file diff --git a/pr-4132/gear_common/type.ProgramId.html b/pr-4132/gear_common/type.ProgramId.html index 335d9e5c1d3..4778f5505a1 100644 --- a/pr-4132/gear_common/type.ProgramId.html +++ b/pr-4132/gear_common/type.ProgramId.html @@ -1,2 +1,2 @@ -ProgramId in gear_common - Rust

Type Alias gear_common::ProgramId

pub type ProgramId = ActorId;
Expand description

Program identifier.

+ProgramId in gear_common - Rust

Type Alias gear_common::ProgramId

source ·
pub type ProgramId = ActorId;
Expand description

Program identifier.

Aliased Type§

struct ProgramId(/* private fields */);

Trait Implementations§

source§

impl Origin for ProgramId

source§

fn into_origin(self) -> H256

source§

fn from_origin(val: H256) -> Self

source§

fn cast<T: Origin>(self) -> T

\ No newline at end of file diff --git a/pr-4132/pallet_gear/manager/index.html b/pr-4132/pallet_gear/manager/index.html index 0bb837b6e8b..f06d67cbf4a 100644 --- a/pr-4132/pallet_gear/manager/index.html +++ b/pr-4132/pallet_gear/manager/index.html @@ -9,8 +9,8 @@ in case of execution resulting in a trap. So, it gives us a guarantee that regardless of the result of message execution, there is always some value to perform asset management, i.e move tokens further to the recipient or give back to sender. The guarantee is implemented by using corresponding pallet_balances functions (reserve, repatriate_reserved, unreserve along with transfer) in pallet_gear extrinsics, -JournalHandler::send_dispatch and -JournalHandler::send_value procedures.

+JournalHandler::send_dispatch and +JournalHandler::send_value procedures.

  • Balance sufficiency before adding message with value to the queue. @@ -21,7 +21,7 @@ by program’s balance checks. The check gives guarantee that value reservation call in

  • -

    JournalHandler::send_dispatch for program’s messages won’t fail, because there is always a +

    JournalHandler::send_dispatch for program’s messages won’t fail, because there is always a sufficient balance for the call.

    1. Messages’s value management considers existential deposit rule. diff --git a/pr-4132/pallet_gear/manager/struct.ExtManager.html b/pr-4132/pallet_gear/manager/struct.ExtManager.html index d559fe4ad57..8b4606237ed 100644 --- a/pr-4132/pallet_gear/manager/struct.ExtManager.html +++ b/pr-4132/pallet_gear/manager/struct.ExtManager.html @@ -15,65 +15,65 @@ )

    source

    pub fn remove_gas_reservation_impl( program_id: ProgramId, reservation_id: ReservationId, -) -> GasReservationSlot

    Trait Implementations§

    source§

    impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData

    source§

    fn from(ext_manager: ExtManager<T>) -> Self

    Converts to this type from the input type.
    source§

    impl<T> JournalHandler for ExtManager<T>
    where +) -> GasReservationSlot

    Trait Implementations§

    source§

    impl<T: Config> From<ExtManager<T>> for QueuePostProcessingData

    source§

    fn from(ext_manager: ExtManager<T>) -> Self

    Converts to this type from the input type.
    source§

    impl<T> JournalHandler for ExtManager<T>
    where T: Config, - T::AccountId: Origin,

    source§

    fn message_dispatched( + T::AccountId: Origin,

    source§

    fn message_dispatched( &mut self, message_id: MessageId, source: ProgramId, - outcome: CoreDispatchOutcome, -)

    Process message dispatch.
    source§

    fn gas_burned(&mut self, message_id: MessageId, amount: u64)

    Process gas burned.
    source§

    fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)

    Process exit dispatch.
    source§

    fn message_consumed(&mut self, message_id: MessageId)

    Process message consumed.
    source§

    fn send_dispatch( + outcome: CoreDispatchOutcome, +)

    Process message dispatch.
    source§

    fn gas_burned(&mut self, message_id: MessageId, amount: u64)

    Process gas burned.
    source§

    fn exit_dispatch(&mut self, id_exited: ProgramId, value_destination: ProgramId)

    Process exit dispatch.
    source§

    fn message_consumed(&mut self, message_id: MessageId)

    Process message consumed.
    source§

    fn send_dispatch( &mut self, message_id: MessageId, dispatch: Dispatch, delay: u32, reservation: Option<ReservationId>, -)

    Process send dispatch.
    source§

    fn wait_dispatch( +)

    Process send dispatch.
    source§

    fn wait_dispatch( &mut self, dispatch: StoredDispatch, duration: Option<u32>, waited_type: MessageWaitedType, -)

    Process send message.
    source§

    fn wake_message( +)

    Process send message.
    source§

    fn wake_message( &mut self, message_id: MessageId, program_id: ProgramId, awakening_id: MessageId, delay: u32, -)

    Process send message.
    source§

    fn update_pages_data( +)

    Process send message.
    source§

    fn update_pages_data( &mut self, program_id: ProgramId, pages_data: BTreeMap<GearPage, PageBuf>, -)

    Process page update.
    source§

    fn update_allocations( +)

    Process page update.
    source§

    fn update_allocations( &mut self, program_id: ProgramId, allocations: IntervalsTree<WasmPage>, -)

    source§

    fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)

    Send value.
    source§

    fn store_new_programs( +)

    Process [JournalNote::UpdateAllocations].
    source§

    fn send_value(&mut self, from: ProgramId, to: Option<ProgramId>, value: u128)

    Send value.
    source§

    fn store_new_programs( &mut self, program_id: ProgramId, code_id: CodeId, candidates: Vec<(MessageId, ProgramId)>, -)

    Store new programs in storage. Read more
    source§

    fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)

    Stop processing queue. Read more
    source§

    fn reserve_gas( +)

    Store new programs in storage. Read more
    source§

    fn stop_processing(&mut self, dispatch: StoredDispatch, gas_burned: u64)

    Stop processing queue. Read more
    source§

    fn reserve_gas( &mut self, message_id: MessageId, reservation_id: ReservationId, program_id: ProgramId, amount: u64, duration: u32, -)

    Reserve gas.
    source§

    fn unreserve_gas( +)

    Reserve gas.
    source§

    fn unreserve_gas( &mut self, reservation_id: ReservationId, program_id: ProgramId, expiration: u32, -)

    Unreserve gas.
    source§

    fn update_gas_reservation( +)

    Unreserve gas.
    source§

    fn update_gas_reservation( &mut self, program_id: ProgramId, reserver: GasReserver, -)

    Update gas reservations.
    source§

    fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)

    Do system reservation.
    source§

    fn system_unreserve_gas(&mut self, message_id: MessageId)

    Do system unreservation.
    source§

    fn send_signal( +)

    Update gas reservations.
    source§

    fn system_reserve_gas(&mut self, message_id: MessageId, amount: u64)

    Do system reservation.
    source§

    fn system_unreserve_gas(&mut self, message_id: MessageId)

    Do system unreservation.
    source§

    fn send_signal( &mut self, message_id: MessageId, destination: ProgramId, code: SignalCode, -)

    Send system signal.
    source§

    fn reply_deposit( +)

    Send system signal.
    source§

    fn reply_deposit( &mut self, message_id: MessageId, future_reply_id: MessageId, diff --git a/pr-4132/pallet_gear/struct.Schedule.html b/pr-4132/pallet_gear/struct.Schedule.html index 85abf01eb3e..5140c59dcfa 100644 --- a/pr-4132/pallet_gear/struct.Schedule.html +++ b/pr-4132/pallet_gear/struct.Schedule.html @@ -48,7 +48,7 @@

    §Note

    §code_instrumentation_cost: Weight

    WASM code instrumentation base cost.

    §code_instrumentation_byte_cost: Weight

    WASM code instrumentation per-byte cost.

    §load_allocations_weight: Weight

    Load allocations weight.

    -

    Implementations§

    source§

    impl<T: Config> Schedule<T>

    source

    pub fn rules(&self, module: &Module) -> impl Rules + '_

    source

    pub fn process_costs(&self) -> ProcessCosts

    Trait Implementations§

    source§

    impl<T: Clone + Config> Clone for Schedule<T>

    source§

    fn clone(&self) -> Schedule<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<T: Config> Debug for Schedule<T>

    source§

    fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T: Config> Decode for Schedule<T>
    where +

    Implementations§

    source§

    impl<T: Config> Schedule<T>

    source

    pub fn rules(&self, module: &Module) -> impl Rules + '_

    source

    pub fn process_costs(&self) -> ProcessCosts

    Trait Implementations§

    source§

    impl<T: Clone + Config> Clone for Schedule<T>

    source§

    fn clone(&self) -> Schedule<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<T: Config> Debug for Schedule<T>

    source§

    fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T: Config> Decode for Schedule<T>
    where InstructionWeights<T>: Decode, SyscallWeights<T>: Decode, MemoryWeights<T>: Decode,

    source§

    fn decode<__CodecInputEdqy: Input>( diff --git a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html index bd4c290e602..4460fe38eae 100644 --- a/pr-4132/pallet_gear/trait.BuiltinDispatcher.html +++ b/pr-4132/pallet_gear/trait.BuiltinDispatcher.html @@ -8,7 +8,7 @@ f: &HandleFn<Self::Error>, dispatch: StoredDispatch, gas_limit: u64, - ) -> Vec<JournalNote>; + ) -> Vec<JournalNote>; }
    Expand description

    A trait representing a registry that provides methods to lookup and run a builtin actor.

    Required Associated Types§

    Required Methods§

    source

    fn lookup<'a>(&'a self, id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>

    Looks up a builtin actor by its actor id.

    source

    fn run( @@ -16,9 +16,9 @@ f: &HandleFn<Self::Error>, dispatch: StoredDispatch, gas_limit: u64, -) -> Vec<JournalNote>

    Implementations on Foreign Types§

    source§

    impl BuiltinDispatcher for ()

    §

    type Error = ()

    source§

    fn lookup<'a>(&'a self, _id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>

    source§

    fn run( +) -> Vec<JournalNote>

    Implementations on Foreign Types§

    source§

    impl BuiltinDispatcher for ()

    §

    type Error = ()

    source§

    fn lookup<'a>(&'a self, _id: &ProgramId) -> Option<&'a HandleFn<Self::Error>>

    source§

    fn run( &self, _f: &HandleFn<Self::Error>, _dispatch: StoredDispatch, _gas_limit: u64, -) -> Vec<JournalNote>

    Implementors§

    \ No newline at end of file +) -> Vec<JournalNote>

    Implementors§

    \ No newline at end of file diff --git a/pr-4132/pallet_gear/type.Ext.html b/pr-4132/pallet_gear/type.Ext.html index 8d8715b1e45..e1a176e3c3f 100644 --- a/pr-4132/pallet_gear/type.Ext.html +++ b/pr-4132/pallet_gear/type.Ext.html @@ -1,7 +1,7 @@ -Ext in pallet_gear - Rust

    Type Alias pallet_gear::Ext

    source ·
    pub type Ext = Ext<LazyPagesRuntimeInterface>;

    Aliased Type§

    struct Ext {
    -    pub context: ProcessorContext,
    +Ext in pallet_gear - Rust

    Type Alias pallet_gear::Ext

    source ·
    pub type Ext = Ext<LazyPagesRuntimeInterface>;

    Aliased Type§

    struct Ext {
    +    pub context: ProcessorContext,
         pub current_counter: CounterType,
         /* private fields */
    -}

    Fields§

    §context: ProcessorContext

    Processor context.

    +}

    Fields§

    §context: ProcessorContext

    Processor context.

    §current_counter: CounterType

    Actual gas counter type within wasm module’s global.

    \ No newline at end of file diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html index 6bc608963b1..78a1e09d462 100644 --- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html +++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html @@ -183,7 +183,7 @@ use core::cell::RefCell; use gear_core::{ ids::{MessageId, ProgramId}, - message::UserStoredMessage, + message::UserStoredMessage, }; /// Mailbox implementation that can be used in a native, non-wasm runtimes. @@ -199,7 +199,7 @@ /// Block number type. pub type BlockNumber = u32; /// Type represents message stored in the mailbox. -pub type MailboxedMessage = UserStoredMessage; +pub type MailboxedMessage = UserStoredMessage; std::thread_local! { // Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor. diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html index f782e7e86b9..e0b14d44d85 100644 --- a/pr-4132/src/gear_common/code_storage.rs.html +++ b/pr-4132/src/gear_common/code_storage.rs.html @@ -125,7 +125,7 @@ use super::*; use crate::storage::MapStorage; -use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId}; +use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId}; #[derive(Clone, Copy, Debug)] pub enum Error { @@ -135,7 +135,7 @@ /// Trait to work with program binary codes in a storage. pub trait CodeStorage { - type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>; + type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>; type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>; type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>; type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>; @@ -148,16 +148,16 @@ Self::InstrumentedCodeStorage::clear(); } - fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> { - let (code, code_id) = code_and_id.into_parts(); - let (code, original_code) = code.into_parts(); + fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> { + let (code, code_id) = code_and_id.into_parts(); + let (code, original_code) = code.into_parts(); Self::InstrumentedCodeStorage::mutate(code_id, |maybe| { if maybe.is_some() { return Err(CodeStorageError::DuplicateItem); } - Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32); + Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32); Self::OriginalCodeStorage::insert(code_id, original_code); Self::MetadataStorage::insert(code_id, metadata); @@ -167,10 +167,10 @@ } /// Update the corresponding code in the storage. - fn update_code(code_and_id: InstrumentedCodeAndId) { - let (code, code_id) = code_and_id.into_parts(); + fn update_code(code_and_id: InstrumentedCodeAndId) { + let (code, code_id) = code_and_id.into_parts(); - Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32); + Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32); Self::InstrumentedCodeStorage::insert(code_id, code); } @@ -196,7 +196,7 @@ }) } - fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { + fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { Self::InstrumentedCodeStorage::get(&code_id) } diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html index f6350d8009b..dacfab49860 100644 --- a/pr-4132/src/gear_common/event.rs.html +++ b/pr-4132/src/gear_common/event.rs.html @@ -268,7 +268,7 @@ //! This module contains components for depositing proper //! and extensive data about actions happen. -use gear_core::{ids::MessageId, message::MessageWaitedType}; +use gear_core::{ids::MessageId, message::MessageWaitedType}; use sp_runtime::{ codec::{self, Decode, Encode}, scale_info::{self, TypeInfo}, @@ -362,13 +362,13 @@ WaitUpToCalledFull, } -impl From<MessageWaitedType> for MessageWaitedRuntimeReason { - fn from(src: MessageWaitedType) -> Self { +impl From<MessageWaitedType> for MessageWaitedRuntimeReason { + fn from(src: MessageWaitedType) -> Self { match src { - MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled, - MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled, - MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled, - MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull, + MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled, + MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled, + MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled, + MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull, } } } diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html index 78e5d8051d3..ff83ce886ab 100644 --- a/pr-4132/src/gear_common/program_storage.rs.html +++ b/pr-4132/src/gear_common/program_storage.rs.html @@ -221,7 +221,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. -use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage}; +use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage}; use super::*; use crate::storage::{MapStorage, TripleMapStorage}; @@ -263,7 +263,7 @@ Key3 = GearPage, Value = PageBuf, >; - type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>; + type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>; /// Attempt to remove all items from all the associated maps. fn reset() { @@ -321,11 +321,11 @@ } } - fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { + fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { Self::AllocationsMap::get(&program_id) } - fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) { + fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) { Self::update_active_program(program_id, |program| { program.allocations_tree_len = u32::try_from(allocations.intervals_amount()) .unwrap_or_else(|err| { diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html index dd3710fb157..f74f1614998 100644 --- a/pr-4132/src/gear_common/storage/primitives/key.rs.html +++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html @@ -113,7 +113,7 @@ use core::marker::PhantomData; use gear_core::{ ids::{MessageId, ProgramId}, - message::{StoredDispatch, UserStoredMessage}, + message::{StoredDispatch, UserStoredMessage}, }; /// Represents logic of providing key as specified @@ -138,10 +138,10 @@ // destination parameter. impl<T: Origin> KeyFor for MailboxKeyGen<T> { type Key = (T, MessageId); - type Value = UserStoredMessage; + type Value = UserStoredMessage; fn key_for(value: &Self::Value) -> Self::Key { - (value.destination().cast(), value.id()) + (value.destination().cast(), value.id()) } } @@ -152,10 +152,10 @@ // it's `MessageId` id parameter. impl KeyFor for QueueKeyGen { type Key = MessageId; - type Value = StoredDispatch; + type Value = StoredDispatch; fn key_for(value: &Self::Value) -> Self::Key { - value.id() + value.id() } } @@ -166,10 +166,10 @@ // `ProgramId` and `MessageId` id parameters. impl KeyFor for WaitlistKeyGen { type Key = (ProgramId, MessageId); - type Value = StoredDispatch; + type Value = StoredDispatch; fn key_for(value: &Self::Value) -> Self::Key { - (value.destination(), value.id()) + (value.destination(), value.id()) } }
    \ No newline at end of file diff --git a/pr-4132/src/pallet_gear/builtin.rs.html b/pr-4132/src/pallet_gear/builtin.rs.html index fed35c68018..7bb9e1099ac 100644 --- a/pr-4132/src/pallet_gear/builtin.rs.html +++ b/pr-4132/src/pallet_gear/builtin.rs.html @@ -92,7 +92,7 @@ // along with this program. If not, see <https://www.gnu.org/licenses/>. use super::*; -use core_processor::common::JournalNote; +use core_processor::common::JournalNote; use gear_core::{ ids::ProgramId, message::{Payload, StoredDispatch}, @@ -112,7 +112,7 @@ f: &HandleFn<Self::Error>, dispatch: StoredDispatch, gas_limit: u64, - ) -> Vec<JournalNote>; + ) -> Vec<JournalNote>; } impl BuiltinDispatcher for () { @@ -127,7 +127,7 @@ _f: &HandleFn<Self::Error>, _dispatch: StoredDispatch, _gas_limit: u64, - ) -> Vec<JournalNote> { + ) -> Vec<JournalNote> { Default::default() } } diff --git a/pr-4132/src/pallet_gear/lib.rs.html b/pr-4132/src/pallet_gear/lib.rs.html index bf31ba89a8a..9a9ff1b354c 100644 --- a/pr-4132/src/pallet_gear/lib.rs.html +++ b/pr-4132/src/pallet_gear/lib.rs.html @@ -2144,8 +2144,8 @@ }; use core::{marker::PhantomData, num::NonZeroU32}; use core_processor::{ - common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote}, - configs::{BlockConfig, BlockInfo}, + common::{DispatchOutcome as CoreDispatchOutcome, ExecutableActorData, JournalNote}, + configs::{BlockConfig, BlockInfo}, }; use frame_support::{ dispatch::{DispatchResultWithPostInfo, PostDispatchInfo}, @@ -3138,15 +3138,15 @@ } } - pub(crate) fn block_config() -> BlockConfig { - let block_info = BlockInfo { + pub(crate) fn block_config() -> BlockConfig { + let block_info = BlockInfo { height: Self::block_number().unique_saturated_into(), timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(), }; let schedule = T::Schedule::get(); - BlockConfig { + BlockConfig { block_info, performance_multiplier: T::PerformanceMultiplier::get().into(), forbidden_funcs: Default::default(), diff --git a/pr-4132/src/pallet_gear/manager/journal.rs.html b/pr-4132/src/pallet_gear/manager/journal.rs.html index 6bcb147ab6e..6c05dc6ab34 100644 --- a/pr-4132/src/pallet_gear/manager/journal.rs.html +++ b/pr-4132/src/pallet_gear/manager/journal.rs.html @@ -721,7 +721,7 @@ storage::*, CodeStorage, LockableTree, Origin, ProgramStorage, ReservableTree, }; -use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler}; +use core_processor::common::{DispatchOutcome as CoreDispatchOutcome, JournalHandler}; use frame_support::{ sp_runtime::Saturating, traits::{Currency, ExistenceRequirement, LockableCurrency, WithdrawReasons}, @@ -739,7 +739,7 @@ use sp_runtime::traits::{UniqueSaturatedInto, Zero}; use sp_std::{collections::btree_map::BTreeMap, prelude::*}; -impl<T> JournalHandler for ExtManager<T> +impl<T> JournalHandler for ExtManager<T> where T: Config, T::AccountId: Origin, @@ -748,12 +748,12 @@ &mut self, message_id: MessageId, source: ProgramId, - outcome: CoreDispatchOutcome, + outcome: CoreDispatchOutcome, ) { - use CoreDispatchOutcome::*; + use CoreDispatchOutcome::*; let status = match outcome { - Exit { program_id } => { + Exit { program_id } => { log::trace!("Dispatch outcome exit: {:?}", message_id); Pallet::<T>::deposit_event(Event::ProgramChanged { @@ -763,12 +763,12 @@ DispatchStatus::Success } - Success => { + Success => { log::trace!("Dispatch outcome success: {:?}", message_id); DispatchStatus::Success } - MessageTrap { program_id, trap } => { + MessageTrap { program_id, trap } => { log::trace!("Dispatch outcome trap: {:?}", message_id); log::debug!( "🪤 Program {} terminated with a trap: {}", @@ -778,7 +778,7 @@ DispatchStatus::Failed } - InitSuccess { program_id, .. } => { + InitSuccess { program_id, .. } => { log::trace!( "Dispatch ({:?}) init success for program {:?}", message_id, @@ -818,7 +818,7 @@ DispatchStatus::Success } - InitFailure { + InitFailure { program_id, origin, reason, @@ -831,7 +831,7 @@ DispatchStatus::Failed } - NoExecution => { + NoExecution => { log::trace!("Dispatch ({:?}) for program wasn't executed", message_id); DispatchStatus::NotExecuted diff --git a/pr-4132/src/pallet_gear/queue.rs.html b/pr-4132/src/pallet_gear/queue.rs.html index f028676f878..28857c33767 100644 --- a/pr-4132/src/pallet_gear/queue.rs.html +++ b/pr-4132/src/pallet_gear/queue.rs.html @@ -333,11 +333,11 @@ // along with this program. If not, see <https://www.gnu.org/licenses/>. use super::*; -use core_processor::ContextChargedForInstrumentation; +use core_processor::ContextChargedForInstrumentation; use gear_core::program::ProgramState; pub(crate) struct QueueStep<'a, T: Config> { - pub block_config: &'a BlockConfig, + pub block_config: &'a BlockConfig, pub gas_limit: GasBalanceOf<T>, pub dispatch: StoredDispatch, pub balance: u128, @@ -347,7 +347,7 @@ where T::AccountId: Origin, { - pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> { + pub(crate) fn run_queue_step(queue_step: QueueStep<'_, T>) -> Vec<JournalNote> { let QueueStep { block_config, gas_limit, @@ -362,7 +362,7 @@ // To start executing a message resources of a destination program should be // fetched from the storage. // The first step is to get program data so charge gas for the operation. - let context = match core_processor::precharge_for_program( + let context = match core_processor::precharge_for_program( block_config, GasAllowanceOf::<T>::get(), dispatch.into_incoming(gas_limit), @@ -375,7 +375,7 @@ let Some(Program::Active(program)) = ProgramStorageOf::<T>::get_program(destination_id) else { log::trace!("Message {dispatch_id} is sent to non-active program {destination_id}"); - return core_processor::process_non_executable(context); + return core_processor::process_non_executable(context); }; if program.state == ProgramState::Initialized && dispatch_kind == DispatchKind::Init { @@ -408,10 +408,10 @@ unreachable!("{err_msg}"); } - return core_processor::process_non_executable(context); + return core_processor::process_non_executable(context); } - let context = match core_processor::precharge_for_allocations( + let context = match core_processor::precharge_for_allocations( block_config, context, program.allocations_tree_len, @@ -429,7 +429,7 @@ }) }).unwrap_or_default(); - let actor_data = ExecutableActorData { + let actor_data = ExecutableActorData { allocations, code_id: program.code_hash.cast(), code_exports: program.code_exports, @@ -441,13 +441,13 @@ // The second step is to load instrumented binary code of the program but // first its correct length should be obtained. let context = - match core_processor::precharge_for_code_length(block_config, context, actor_data) { + match core_processor::precharge_for_code_length(block_config, context, actor_data) { Ok(context) => context, Err(journal) => return journal, }; // Load correct code length value. - let code_id = context.actor_data().code_id; + let code_id = context.actor_data().code_id; let code_len_bytes = T::CodeStorage::get_code_len(code_id).unwrap_or_else(|| { // `Program` exists, so do code and code len. let err_msg = format!( @@ -461,7 +461,7 @@ // Adjust gas counters for fetching instrumented binary code. let context = - match core_processor::precharge_for_code(block_config, context, code_len_bytes) { + match core_processor::precharge_for_code(block_config, context, code_len_bytes) { Ok(context) => context, Err(journal) => return journal, }; @@ -486,7 +486,7 @@ } else { log::debug!("Re-instrumenting code for program '{destination_id:?}'"); - let context = match core_processor::precharge_for_instrumentation( + let context = match core_processor::precharge_for_instrumentation( block_config, context, code.original_code_len(), @@ -499,7 +499,7 @@ Ok(code) => code, Err(e) => { log::debug!("Re-instrumentation error for code {code_id:?}: {e:?}"); - return core_processor::process_reinstrumentation_error(context); + return core_processor::process_reinstrumentation_error(context); } }; @@ -507,7 +507,7 @@ }; // The last one thing is to load program memory. Adjust gas counters for memory pages. - let context = match core_processor::precharge_for_module_instantiation( + let context = match core_processor::precharge_for_module_instantiation( block_config, context, code.instantiated_section_sizes(), diff --git a/pr-4132/src/pallet_gear/runtime_api.rs.html b/pr-4132/src/pallet_gear/runtime_api.rs.html index 25d2122f06d..b2a0c700d4d 100644 --- a/pr-4132/src/pallet_gear/runtime_api.rs.html +++ b/pr-4132/src/pallet_gear/runtime_api.rs.html @@ -1129,7 +1129,7 @@ allowance_multiplier, )?); - let block_info = BlockInfo { + let block_info = BlockInfo { height: Self::block_number().unique_saturated_into(), timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(), }; @@ -1166,7 +1166,7 @@ memory_infix, } = Self::code_with_memory(program_id)?; - let block_info = BlockInfo { + let block_info = BlockInfo { height: Self::block_number().unique_saturated_into(), timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(), }; @@ -1202,7 +1202,7 @@ memory_infix, } = Self::code_with_memory(program_id)?; - let block_info = BlockInfo { + let block_info = BlockInfo { height: Self::block_number().unique_saturated_into(), timestamp: <pallet_timestamp::Pallet<T>>::get().unique_saturated_into(), }; @@ -1297,7 +1297,7 @@ fn dequeue_head_and_run( ext_manager: &mut ExtManager<T>, forbidden_funcs: Option<BTreeSet<SyscallName>>, - ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> { + ) -> Result<Option<(Dispatch, Vec<JournalNote>, bool)>, String> { // Extracting queued dispatch. let head = QueueOf::<T>::dequeue().map_err(|_| Self::internal_err_string("Queue corrupted"))?; diff --git a/pr-4132/src/pallet_gear/schedule.rs.html b/pr-4132/src/pallet_gear/schedule.rs.html index 7e88e9dcf00..9307fd4a712 100644 --- a/pr-4132/src/pallet_gear/schedule.rs.html +++ b/pr-4132/src/pallet_gear/schedule.rs.html @@ -1597,7 +1597,7 @@ use crate::{weights::WeightInfo, Config, CostsPerBlockOf, DbWeightOf}; use common::scheduler::SchedulingCostsPerBlock; -use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts}; +use core_processor::configs::{ExtCosts, InstantiationCosts, ProcessCosts, RentCosts}; use frame_support::{traits::Get, weights::Weight}; use gear_core::{ code::MAX_WASM_PAGES_AMOUNT, @@ -2748,11 +2748,11 @@ } } - pub fn process_costs(&self) -> ProcessCosts { - ProcessCosts { - ext: ExtCosts { + pub fn process_costs(&self) -> ProcessCosts { + ProcessCosts { + ext: ExtCosts { syscalls: self.syscall_weights.clone().into(), - rent: RentCosts { + rent: RentCosts { waitlist: CostsPerBlockOf::<T>::waitlist().into(), dispatch_stash: CostsPerBlockOf::<T>::dispatch_stash().into(), reservation: CostsPerBlockOf::<T>::reservation().into(), @@ -2766,7 +2766,7 @@ write: DbWeightOf::<T>::get().writes(1).ref_time().into(), instrumentation: self.code_instrumentation_cost.ref_time().into(), instrumentation_per_byte: self.code_instrumentation_byte_cost.ref_time().into(), - instantiation_costs: InstantiationCosts { + instantiation_costs: InstantiationCosts { code_section_per_byte: self .instantiation_weights .code_section_per_byte diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js index a0d449ea8ac..f8e9a1e041d 100644 --- a/pr-4132/trait.impl/core/convert/trait.From.js +++ b/pr-4132/trait.impl/core/convert/trait.From.js @@ -1,7 +1,7 @@ (function() {var implementors = { "gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]], "gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]], -"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier
    where\n Balance: Copy + UniqueSaturatedInto<Value>,\n Gas: Copy + UniqueSaturatedInto<Gas>,
    "],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>
    where\n I: Iterator,\n TC: TransposeCallback<I::Item, Item>,
    "],["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
    where\n Balance: Copy + UniqueSaturatedInto<Value>,\n Gas: Copy + UniqueSaturatedInto<Gas>,
    "],["impl<I, Item, TC> From<I> for IteratorWrap<I, Item, TC>
    where\n I: Iterator,\n TC: TransposeCallback<I::Item, Item>,
    "],["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 RunFallibleError
    where\n E: BackendSyscallError,
    "],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]], "gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]], diff --git a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js index 610b15d6f4a..d37a9f40072 100644 --- a/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js +++ b/pr-4132/trait.impl/gear_core_processor/common/trait.JournalHandler.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>
    where\n T: Config,\n T::AccountId: Origin,
    "]] +"pallet_gear":[["impl<T> JournalHandler for ExtManager<T>
    where\n T: Config,\n T::AccountId: Origin,
    "]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js index 3ee80c804ae..1b5be40ec92 100644 --- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js +++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"gear_common":[["
    §

    impl Clone for UserStoredMessage

    §

    fn clone(&self) -> UserStoredMessage

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl Debug for UserStoredMessage

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","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"],["
    §

    impl Default for UserStoredMessage

    §

    fn default() -> UserStoredMessage

    Returns the “default value” for a type. Read more
    ","Default","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl Encode for UserStoredMessage

    §

    fn size_hint(&self) -> usize

    If possible give a hint of expected size of the encoding. Read more
    §

    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 encode(&self) -> Vec<u8>

    Convert self to an owned vector.
    §

    fn using_encoded<R, F>(&self, f: F) -> R
    where\n F: FnOnce(&[u8]) -> 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"],["
    §

    impl Hash for UserStoredMessage

    §

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl Ord for UserStoredMessage

    §

    fn cmp(&self, other: &UserStoredMessage) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl PartialEq for UserStoredMessage

    §

    fn eq(&self, other: &UserStoredMessage) -> 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,\nand should not be overridden without very good reason.
    ","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl PartialOrd for UserStoredMessage

    §

    fn partial_cmp(&self, other: &UserStoredMessage) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl TryFrom<StoredMessage> for UserStoredMessage

    §

    type Error = UserStoredMessageConvertError

    The type returned in the event of a conversion error.
    §

    fn try_from(\n stored: StoredMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<StoredMessage>>::Error>

    Performs the conversion.
    ","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl TryFrom<UserMessage> for UserStoredMessage

    §

    type Error = UserStoredMessageConvertError

    The type returned in the event of a conversion error.
    §

    fn try_from(\n user: UserMessage,\n) -> Result<UserStoredMessage, <UserStoredMessage as TryFrom<UserMessage>>::Error>

    Performs the conversion.
    ","TryFrom","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl TypeInfo for UserStoredMessage

    §

    type Identity = UserStoredMessage

    The type identifying for which type info is provided. Read more
    §

    fn type_info() -> Type

    Returns the static type identifier for Self.
    ","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.

    \n

    pub fn id(&self) -> MessageId

    Message id.

    \n

    pub fn source(&self) -> ActorId

    Message source.

    \n

    pub fn destination(&self) -> ActorId

    Message destination.

    \n

    pub fn payload_bytes(&self) -> &[u8]

    Message payload bytes.

    \n

    pub fn value(&self) -> u128

    Message value.

    \n
    ",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl EncodeLike for UserStoredMessage

    ","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl Eq for UserStoredMessage

    ","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    §

    impl StructuralPartialEq for UserStoredMessage

    ","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]] +"gear_common":[["
    source§

    impl Clone for UserStoredMessage

    source§

    fn clone(&self) -> UserStoredMessage

    Returns a copy of the value. Read more
    1.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

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","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 more
    source§

    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 encode(&self) -> Vec<u8>

    Convert self to an owned vector.
    §

    fn using_encoded<R, F>(&self, f: F) -> R
    where\n F: FnOnce(&[u8]) -> 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

    source§

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    source§

    impl Ord for UserStoredMessage

    source§

    fn cmp(&self, other: &UserStoredMessage) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    source§

    impl PartialEq for UserStoredMessage

    source§

    fn eq(&self, other: &UserStoredMessage) -> 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,\nand should not be overridden without very good reason.
    ","PartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    source§

    impl PartialOrd for UserStoredMessage

    source§

    fn partial_cmp(&self, other: &UserStoredMessage) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    source§

    impl TryFrom<StoredMessage> for UserStoredMessage

    §

    type Error = UserStoredMessageConvertError

    The type returned in the event of a conversion error.
    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

    §

    type Error = UserStoredMessageConvertError

    The type returned in the event of a conversion error.
    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

    §

    type Identity = UserStoredMessage

    The type identifying for which type info is provided. Read more
    source§

    fn type_info() -> Type

    Returns the static type identifier for Self.
    ","TypeInfo","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    source§

    impl UserStoredMessage

    source

    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.

    \n
    source

    pub fn id(&self) -> MessageId

    Message id.

    \n
    source

    pub fn source(&self) -> ActorId

    Message source.

    \n
    source

    pub fn destination(&self) -> ActorId

    Message destination.

    \n
    source

    pub fn payload_bytes(&self) -> &[u8]

    Message payload bytes.

    \n
    source

    pub fn value(&self) -> u128

    Message value.

    \n
    ",0,"gear_common::auxiliary::mailbox::MailboxedMessage"],["
    source§

    impl EncodeLike for UserStoredMessage

    ","EncodeLike","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    source§

    impl Eq for UserStoredMessage

    ","Eq","gear_common::auxiliary::mailbox::MailboxedMessage"],["
    source§

    impl StructuralPartialEq for UserStoredMessage

    ","StructuralPartialEq","gear_common::auxiliary::mailbox::MailboxedMessage"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js index fb9c4e65442..ab165e51afb 100644 --- a/pr-4132/type.impl/gear_core/pages/struct.Page.js +++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js @@ -1,4 +1,4 @@ (function() {var type_impls = { -"gear_common":[["
    §

    impl<const SIZE: u32> Clone for Page<SIZE>

    §

    fn clone(&self) -> Page<SIZE>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> Debug for Page<SIZE>

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","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"],["
    §

    impl<const SIZE: u32> Default for Page<SIZE>

    §

    fn default() -> Page<SIZE>

    Returns the “default value” for a type. Read more
    ","Default","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> Encode for Page<SIZE>

    §

    fn size_hint(&self) -> usize

    If possible give a hint of expected size of the encoding. Read more
    §

    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 encode(&self) -> Vec<u8>

    Convert self to an owned vector.
    §

    fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
    where\n __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
    ","Encode","gear_common::GearPage"],["
    §

    impl From<u16> for Page<gear_core::::pages::GearPage::{constant#0}>

    §

    fn from(value: u16) -> Page<gear_core::::pages::GearPage::{constant#0}>

    Converts to this type from the input type.
    ","From","gear_common::GearPage"],["
    §

    impl From<u16> for Page<gear_core::::pages::WasmPage::{constant#0}>

    §

    fn from(value: u16) -> Page<gear_core::::pages::WasmPage::{constant#0}>

    Converts to this type from the input type.
    ","From","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> LowerBounded for Page<SIZE>

    §

    fn min_value() -> Page<SIZE>

    Returns the smallest finite number this type can represent
    ","LowerBounded","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> Numerated for Page<SIZE>

    §

    type Distance = u32

    Numerate type: type that describes the distances between two values of Self.
    §

    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>>

    Adds num to self, if self + num is enclosed by self and other. Read more
    §

    fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>

    Subtracts num from self, if self - num is enclosed by self and other. Read more
    §

    fn distance(self, other: Page<SIZE>) -> <Page<SIZE> as Numerated>::Distance

    Returns a distance between self and other Read more
    §

    fn inc_if_lt(self, other: Self) -> Option<Self>

    Increments self, if self < other.
    §

    fn dec_if_gt(self, other: Self) -> Option<Self>

    Decrements self, if self > other.
    §

    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>

    §

    fn cmp(&self, other: &Page<SIZE>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> Page<SIZE>

    pub const SIZE: u32 = SIZE

    Page size. May be any number power of two in interval [1, u32::MAX].

    \n

    pub const UPPER: Page<SIZE> = _

    Max possible page number in 4GB memory.

    \n

    Note: const computation contains checking in order to prevent incorrect SIZE.

    \n

    pub fn inc(&self) -> PagesAmount<SIZE>

    Increment page number. Returns PagesAmount<SIZE>, because this allows to avoid overflows.

    \n

    pub fn from_offset(offset: u32) -> Page<SIZE>

    Constructs new page from byte offset: returns page which contains this byte.

    \n

    pub fn offset(&self) -> u32

    Returns page zero byte offset.

    \n

    pub fn end_offset(&self) -> u32

    Returns page last byte offset.

    \n

    pub fn to_page<const S1: u32>(self) -> Page<S1>

    Returns new page, which contains self zero byte.

    \n

    pub 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
    \n
    use gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
    \n

    For this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]

    \n
    ",0,"gear_common::GearPage"],["
    §

    impl<const SIZE: u32> PartialEq<PagesAmount<SIZE>> for Page<SIZE>

    §

    fn eq(&self, other: &PagesAmount<SIZE>) -> 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,\nand should not be overridden without very good reason.
    ","PartialEq>","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> PartialEq for Page<SIZE>

    §

    fn eq(&self, other: &Page<SIZE>) -> 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,\nand should not be overridden without very good reason.
    ","PartialEq","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>

    §

    fn partial_cmp(&self, other: &PagesAmount<SIZE>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd>","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> PartialOrd for Page<SIZE>

    §

    fn partial_cmp(&self, other: &Page<SIZE>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> TryFrom<u32> for Page<SIZE>

    §

    type Error = PageError

    The type returned in the event of a conversion error.
    §

    fn try_from(raw: u32) -> Result<Page<SIZE>, <Page<SIZE> as TryFrom<u32>>::Error>

    Performs the conversion.
    ","TryFrom","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> TypeInfo for Page<SIZE>

    §

    type Identity = Page<SIZE>

    The type identifying for which type info is provided. Read more
    §

    fn type_info() -> Type

    Returns the static type identifier for Self.
    ","TypeInfo","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> UpperBounded for Page<SIZE>

    §

    fn max_value() -> Page<SIZE>

    Returns the largest finite number this type can represent
    ","UpperBounded","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> Copy for Page<SIZE>

    ","Copy","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> EncodeLike for Page<SIZE>

    ","EncodeLike","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> Eq for Page<SIZE>

    ","Eq","gear_common::GearPage"],["
    §

    impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>

    ","StructuralPartialEq","gear_common::GearPage"]], +"gear_common":[["
    source§

    impl<const SIZE: u32> Clone for Page<SIZE>

    source§

    fn clone(&self) -> Page<SIZE>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> Debug for Page<SIZE>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","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"],["
    source§

    impl<const SIZE: u32> Default for Page<SIZE>

    source§

    fn default() -> Page<SIZE>

    Returns the “default value” for a type. Read more
    ","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 more
    source§

    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 encode(&self) -> Vec<u8>

    Convert self to an owned vector.
    source§

    fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
    where\n __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
    ","Encode","gear_common::GearPage"],["
    source§

    impl From<u16> for Page<gear_core::::pages::GearPage::{constant#0}>

    source§

    fn from(value: u16) -> Page<gear_core::::pages::GearPage::{constant#0}>

    Converts to this type from the input type.
    ","From","gear_common::GearPage"],["
    source§

    impl From<u16> for Page<gear_core::::pages::WasmPage::{constant#0}>

    source§

    fn from(value: u16) -> Page<gear_core::::pages::WasmPage::{constant#0}>

    Converts to this type from the input type.
    ","From","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> LowerBounded for Page<SIZE>

    source§

    fn min_value() -> Page<SIZE>

    Returns the smallest finite number this type can represent
    ","LowerBounded","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> Numerated for Page<SIZE>

    §

    type Distance = u32

    Numerate type: type that describes the distances between two values of Self.
    §

    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>>

    Adds num to self, if self + num is enclosed by self and other. Read more
    source§

    fn sub_if_enclosed_by(\n self,\n num: <Page<SIZE> as Numerated>::Distance,\n other: Page<SIZE>,\n) -> Option<Page<SIZE>>

    Subtracts num from self, if self - num is enclosed by self and other. Read more
    source§

    fn distance(self, other: Page<SIZE>) -> <Page<SIZE> as Numerated>::Distance

    Returns a distance between self and other Read more
    §

    fn inc_if_lt(self, other: Self) -> Option<Self>

    Increments self, if self < other.
    §

    fn dec_if_gt(self, other: Self) -> Option<Self>

    Decrements self, if self > other.
    §

    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>

    source§

    fn cmp(&self, other: &Page<SIZE>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> Page<SIZE>

    source

    pub const SIZE: u32 = SIZE

    Page size. May be any number power of two in interval [1, u32::MAX].

    \n
    source

    pub const UPPER: Page<SIZE> = _

    Max possible page number in 4GB memory.

    \n

    Note: const computation contains checking in order to prevent incorrect SIZE.

    \n
    source

    pub fn inc(&self) -> PagesAmount<SIZE>

    Increment page number. Returns PagesAmount<SIZE>, because this allows to avoid overflows.

    \n
    source

    pub fn from_offset(offset: u32) -> Page<SIZE>

    Constructs new page from byte offset: returns page which contains this byte.

    \n
    source

    pub fn offset(&self) -> u32

    Returns page zero byte offset.

    \n
    source

    pub fn end_offset(&self) -> u32

    Returns page last byte offset.

    \n
    source

    pub fn to_page<const S1: u32>(self) -> Page<S1>

    Returns new page, which contains self zero byte.

    \n
    source

    pub 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
    \n
    use gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
    \n

    For this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]

    \n
    ",0,"gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> PartialEq<PagesAmount<SIZE>> for Page<SIZE>

    source§

    fn eq(&self, other: &PagesAmount<SIZE>) -> 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,\nand should not be overridden without very good reason.
    ","PartialEq>","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> PartialEq for Page<SIZE>

    source§

    fn eq(&self, other: &Page<SIZE>) -> 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,\nand should not be overridden without very good reason.
    ","PartialEq","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>

    source§

    fn partial_cmp(&self, other: &PagesAmount<SIZE>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd>","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> PartialOrd for Page<SIZE>

    source§

    fn partial_cmp(&self, other: &Page<SIZE>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> TryFrom<u32> for Page<SIZE>

    §

    type Error = PageError

    The type returned in the event of a conversion error.
    source§

    fn try_from(raw: u32) -> Result<Page<SIZE>, <Page<SIZE> as TryFrom<u32>>::Error>

    Performs the conversion.
    ","TryFrom","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> TypeInfo for Page<SIZE>

    §

    type Identity = Page<SIZE>

    The type identifying for which type info is provided. Read more
    source§

    fn type_info() -> Type

    Returns the static type identifier for Self.
    ","TypeInfo","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> UpperBounded for Page<SIZE>

    source§

    fn max_value() -> Page<SIZE>

    Returns the largest finite number this type can represent
    ","UpperBounded","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> Copy for Page<SIZE>

    ","Copy","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> EncodeLike for Page<SIZE>

    ","EncodeLike","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> Eq for Page<SIZE>

    ","Eq","gear_common::GearPage"],["
    source§

    impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>

    ","StructuralPartialEq","gear_common::GearPage"]], "gear_core":[["
    source§

    impl<const SIZE: u32> Clone for Page<SIZE>

    source§

    fn clone(&self) -> Page<SIZE>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> Debug for Page<SIZE>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","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"],["
    source§

    impl<const SIZE: u32> Default for Page<SIZE>

    source§

    fn default() -> Page<SIZE>

    Returns the “default value” for a type. Read more
    ","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 more
    source§

    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 encode(&self) -> Vec<u8>

    Convert self to an owned vector.
    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>

    source§

    fn min_value() -> Self

    Returns the smallest finite number this type can represent
    ","LowerBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> Numerated for Page<SIZE>

    §

    type Distance = u32

    Numerate type: type that describes the distances between two values of Self.
    §

    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>

    Adds num to self, if self + num is enclosed by self and other. Read more
    source§

    fn sub_if_enclosed_by(self, num: Self::Distance, other: Self) -> Option<Self>

    Subtracts num from self, if self - num is enclosed by self and other. Read more
    source§

    fn distance(self, other: Self) -> Self::Distance

    Returns a distance between self and other Read more
    §

    fn inc_if_lt(self, other: Self) -> Option<Self>

    Increments self, if self < other.
    §

    fn dec_if_gt(self, other: Self) -> Option<Self>

    Decrements self, if self > other.
    §

    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>

    source§

    fn cmp(&self, other: &Page<SIZE>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> Page<SIZE>

    source

    pub const SIZE: u32 = SIZE

    Page size. May be any number power of two in interval [1, u32::MAX].

    \n
    source

    pub const UPPER: Self = _

    Max possible page number in 4GB memory.

    \n

    Note: const computation contains checking in order to prevent incorrect SIZE.

    \n
    source

    pub fn inc(&self) -> PagesAmount<SIZE>

    Increment page number. Returns PagesAmount<SIZE>, because this allows to avoid overflows.

    \n
    source

    pub fn from_offset(offset: u32) -> Self

    Constructs new page from byte offset: returns page which contains this byte.

    \n
    source

    pub fn offset(&self) -> u32

    Returns page zero byte offset.

    \n
    source

    pub fn end_offset(&self) -> u32

    Returns page last byte offset.

    \n
    source

    pub fn to_page<const S1: u32>(self) -> Page<S1>

    Returns new page, which contains self zero byte.

    \n
    source

    pub 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
    \n
    use gear_core::pages::{GearPage, WasmPage};\n\nlet x: Vec<GearPage> = WasmPage::from(5).to_iter().collect();\nprintln!(\"{x:?}\");
    \n

    For this example must be printed: [GearPage(20), GearPage(21), GearPage(22), GearPage(23)]

    \n
    ",0,"gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> PartialEq<PagesAmount<SIZE>> for Page<SIZE>

    source§

    fn eq(&self, other: &PagesAmount<SIZE>) -> 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,\nand should not be overridden without very good reason.
    ","PartialEq>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> PartialEq for Page<SIZE>

    source§

    fn eq(&self, other: &Page<SIZE>) -> 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,\nand should not be overridden without very good reason.
    ","PartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> PartialOrd<PagesAmount<SIZE>> for Page<SIZE>

    source§

    fn partial_cmp(&self, other: &PagesAmount<SIZE>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd>","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> PartialOrd for Page<SIZE>

    source§

    fn partial_cmp(&self, other: &Page<SIZE>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> TryFrom<u32> for Page<SIZE>

    §

    type Error = PageError

    The type returned in the event of a conversion error.
    source§

    fn try_from(raw: u32) -> Result<Self, Self::Error>

    Performs the conversion.
    ","TryFrom","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> TypeInfo for Page<SIZE>

    §

    type Identity = Page<SIZE>

    The type identifying for which type info is provided. Read more
    source§

    fn type_info() -> Type

    Returns the static type identifier for Self.
    ","TypeInfo","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> UpperBounded for Page<SIZE>

    source§

    fn max_value() -> Self

    Returns the largest finite number this type can represent
    ","UpperBounded","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> Copy for Page<SIZE>

    ","Copy","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> EncodeLike for Page<SIZE>

    ","EncodeLike","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> Eq for Page<SIZE>

    ","Eq","gear_core::pages::WasmPage","gear_core::pages::GearPage"],["
    source§

    impl<const SIZE: u32> StructuralPartialEq for Page<SIZE>

    ","StructuralPartialEq","gear_core::pages::WasmPage","gear_core::pages::GearPage"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js index 3e52546cb71..547ab8d0aa2 100644 --- a/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js +++ b/pr-4132/type.impl/gear_core_processor/ext/struct.Ext.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"pallet_gear":[["
    source§

    impl<LP> BackendExternalities for Ext<LP>
    where\n LP: LazyPagesInterface,

    source§

    fn gas_amount(&self) -> GasAmount

    source§

    fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>

    Pre-process memory access if needed.
    ","BackendExternalities","pallet_gear::Ext"],["
    source§

    impl<LP> CountersOwner for Ext<LP>
    where\n LP: LazyPagesInterface,

    source§

    fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>

    Charge for runtime api call.
    source§

    fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>

    Charge gas if enough, else just returns error.
    source§

    fn gas_left(&self) -> GasLeft

    Returns gas limit and gas allowance left.
    source§

    fn current_counter_type(&self) -> CounterType

    Currently set gas counter type.
    source§

    fn decrease_current_counter_to(&mut self, amount: u64)

    Decreases gas left by fetched single numeric of actual counter.
    source§

    fn define_current_counter(&mut self) -> u64

    Returns minimal amount of gas counters and set the type of current counter.
    §

    fn current_counter_value(&self) -> u64

    Returns value of gas counter currently set.
    ","CountersOwner","pallet_gear::Ext"],["
    source§

    impl<LP> Externalities for Ext<LP>
    where\n LP: LazyPagesInterface,

    §

    type UnrecoverableError = UnrecoverableExtError

    An error issued in infallible syscall.
    §

    type FallibleError = FallibleExtError

    An error issued in fallible syscall.
    §

    type AllocError = AllocExtError

    An error issued during allocation.
    source§

    fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>

    Allocate number of pages. Read more
    source§

    fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>

    Free specific page.
    source§

    fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>

    Free specific memory range.
    source§

    fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>

    Get environment variables currently set in the system and in the form\ncorresponded to the requested version.
    source§

    fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>

    Get the current block height.
    source§

    fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>

    Get the current block timestamp.
    source§

    fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>

    Initialize a new incomplete message for another program and return its handle.
    source§

    fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Push an extra buffer into message payload by handle.
    source§

    fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Push the incoming message buffer into message payload by handle.
    source§

    fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Complete message and send it to another program.
    source§

    fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Complete message and send it to another program using gas from reservation.
    source§

    fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Push an extra buffer into reply message.
    source§

    fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Complete reply message and send it to source program.
    source§

    fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Complete reply message and send it to source program from reservation.
    source§

    fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Get the message id of the initial message.
    source§

    fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Get the message id which signal issues from.
    source§

    fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Push the incoming message buffer into reply message.
    source§

    fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>

    Get the source of the message currently being handled.
    source§

    fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>

    Get the reply code if the message being processed.
    source§

    fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>

    Get the signal code if the message being processed.
    source§

    fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>

    Get the id of the message currently being handled.
    source§

    fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>

    Get the id of program itself
    source§

    fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>

    Send debug message. Read more
    source§

    fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>

    Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock], which acts\nlike lock. Read more
    source§

    fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound

    Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more
    source§

    fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>

    Size of currently handled message payload.
    source§

    fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>

    Reserve some gas for a few blocks.
    source§

    fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>

    Unreserve gas using reservation ID.
    source§

    fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Do system reservation.
    source§

    fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>

    Tell how much gas is left in running context.
    source§

    fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>

    Value associated with message.
    source§

    fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>

    Tell how much value is left in running context.
    source§

    fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>

    Interrupt the program and reschedule execution for maximum.
    source§

    fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>

    Interrupt the program and reschedule execution in duration.
    source§

    fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>

    Interrupt the program and reschedule execution for maximum,\nbut not more than duration.
    source§

    fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Wake the waiting message and move it to the processing queue.
    source§

    fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>

    Send init message to create a new program.
    source§

    fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Create deposit to handle reply on given message.
    source§

    fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>

    Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.
    source§

    fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>

    Return the set of functions that are forbidden to be called.
    §

    fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>

    Send message to another program.
    §

    fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>

    Send message to another program using gas from reservation.
    §

    fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>

    Produce reply to the current message.
    §

    fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>

    Produce reply to the current message from reservation.
    ","Externalities","pallet_gear::Ext"],["
    source§

    impl<LP> ProcessorExternalities for Ext<LP>
    where\n LP: LazyPagesInterface,

    Empty implementation for non-substrate (and non-lazy-pages) using

    \n
    source§

    fn new(context: ProcessorContext) -> Ext<LP>

    Create new
    source§

    fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>

    Convert externalities into info.
    source§

    fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)

    Protect and save storage keys for pages which has no data
    source§

    fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)

    Lazy pages program post execution actions
    source§

    fn lazy_pages_status() -> Status

    Returns lazy pages status
    ","ProcessorExternalities","pallet_gear::Ext"]] +"pallet_gear":[["
    §

    impl<LP> BackendExternalities for Ext<LP>
    where\n LP: LazyPagesInterface,

    §

    fn gas_amount(&self) -> GasAmount

    §

    fn pre_process_memory_accesses(\n &mut self,\n reads: &[MemoryInterval],\n writes: &[MemoryInterval],\n gas_counter: &mut u64,\n) -> Result<(), ProcessAccessError>

    Pre-process memory access if needed.
    ","BackendExternalities","pallet_gear::Ext"],["
    §

    impl<LP> CountersOwner for Ext<LP>
    where\n LP: LazyPagesInterface,

    §

    fn charge_gas_for_token(&mut self, token: CostToken) -> Result<(), ChargeError>

    Charge for runtime api call.
    §

    fn charge_gas_if_enough(&mut self, amount: u64) -> Result<(), ChargeError>

    Charge gas if enough, else just returns error.
    §

    fn gas_left(&self) -> GasLeft

    Returns gas limit and gas allowance left.
    §

    fn current_counter_type(&self) -> CounterType

    Currently set gas counter type.
    §

    fn decrease_current_counter_to(&mut self, amount: u64)

    Decreases gas left by fetched single numeric of actual counter.
    §

    fn define_current_counter(&mut self) -> u64

    Returns minimal amount of gas counters and set the type of current counter.
    §

    fn current_counter_value(&self) -> u64

    Returns value of gas counter currently set.
    ","CountersOwner","pallet_gear::Ext"],["
    §

    impl<LP> Externalities for Ext<LP>
    where\n LP: LazyPagesInterface,

    §

    type UnrecoverableError = UnrecoverableExtError

    An error issued in infallible syscall.
    §

    type FallibleError = FallibleExtError

    An error issued in fallible syscall.
    §

    type AllocError = AllocExtError

    An error issued during allocation.
    §

    fn alloc<Context>(\n &mut self,\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n pages_num: u32,\n) -> Result<Page<gear_core::::pages::WasmPage::{constant#0}>, <Ext<LP> as Externalities>::AllocError>

    Allocate number of pages. Read more
    §

    fn free(\n &mut self,\n page: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>

    Free specific page.
    §

    fn free_range(\n &mut self,\n start: Page<gear_core::::pages::WasmPage::{constant#0}>,\n end: Page<gear_core::::pages::WasmPage::{constant#0}>,\n) -> Result<(), <Ext<LP> as Externalities>::AllocError>

    Free specific memory range.
    §

    fn env_vars(\n &self,\n version: u32,\n) -> Result<EnvVars, <Ext<LP> as Externalities>::UnrecoverableError>

    Get environment variables currently set in the system and in the form\ncorresponded to the requested version.
    §

    fn block_height(\n &self,\n) -> Result<u32, <Ext<LP> as Externalities>::UnrecoverableError>

    Get the current block height.
    §

    fn block_timestamp(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>

    Get the current block timestamp.
    §

    fn send_init(\n &mut self,\n) -> Result<u32, <Ext<LP> as Externalities>::FallibleError>

    Initialize a new incomplete message for another program and return its handle.
    §

    fn send_push(\n &mut self,\n handle: u32,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Push an extra buffer into message payload by handle.
    §

    fn send_push_input(\n &mut self,\n handle: u32,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Push the incoming message buffer into message payload by handle.
    §

    fn send_commit(\n &mut self,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Complete message and send it to another program.
    §

    fn reservation_send_commit(\n &mut self,\n id: ReservationId,\n handle: u32,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Complete message and send it to another program using gas from reservation.
    §

    fn reply_push(\n &mut self,\n buffer: &[u8],\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Push an extra buffer into reply message.
    §

    fn reply_commit(\n &mut self,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Complete reply message and send it to source program.
    §

    fn reservation_reply_commit(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Complete reply message and send it to source program from reservation.
    §

    fn reply_to(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Get the message id of the initial message.
    §

    fn signal_from(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::FallibleError>

    Get the message id which signal issues from.
    §

    fn reply_push_input(\n &mut self,\n offset: u32,\n len: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Push the incoming message buffer into reply message.
    §

    fn source(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>

    Get the source of the message currently being handled.
    §

    fn reply_code(\n &self,\n) -> Result<ReplyCode, <Ext<LP> as Externalities>::FallibleError>

    Get the reply code if the message being processed.
    §

    fn signal_code(\n &self,\n) -> Result<SignalCode, <Ext<LP> as Externalities>::FallibleError>

    Get the signal code if the message being processed.
    §

    fn message_id(\n &self,\n) -> Result<MessageId, <Ext<LP> as Externalities>::UnrecoverableError>

    Get the id of the message currently being handled.
    §

    fn program_id(\n &self,\n) -> Result<ActorId, <Ext<LP> as Externalities>::UnrecoverableError>

    Get the id of program itself
    §

    fn debug(\n &self,\n data: &str,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>

    Send debug message. Read more
    §

    fn lock_payload(\n &mut self,\n at: u32,\n len: u32,\n) -> Result<PayloadSliceLock, <Ext<LP> as Externalities>::FallibleError>

    Takes ownership over payload of the executing message and\nreturns it in the wrapper [PayloadSliceLock], which acts\nlike lock. Read more
    §

    fn unlock_payload(\n &mut self,\n payload_holder: &mut PayloadSliceLock,\n) -> UnlockPayloadBound

    Reclaims ownership from the payload lock over previously taken payload from the\ncurrently executing message.. Read more
    §

    fn size(&self) -> Result<usize, <Ext<LP> as Externalities>::UnrecoverableError>

    Size of currently handled message payload.
    §

    fn reserve_gas(\n &mut self,\n amount: u64,\n duration: u32,\n) -> Result<ReservationId, <Ext<LP> as Externalities>::FallibleError>

    Reserve some gas for a few blocks.
    §

    fn unreserve_gas(\n &mut self,\n id: ReservationId,\n) -> Result<u64, <Ext<LP> as Externalities>::FallibleError>

    Unreserve gas using reservation ID.
    §

    fn system_reserve_gas(\n &mut self,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Do system reservation.
    §

    fn gas_available(\n &self,\n) -> Result<u64, <Ext<LP> as Externalities>::UnrecoverableError>

    Tell how much gas is left in running context.
    §

    fn value(&self) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>

    Value associated with message.
    §

    fn value_available(\n &self,\n) -> Result<u128, <Ext<LP> as Externalities>::UnrecoverableError>

    Tell how much value is left in running context.
    §

    fn wait(&mut self) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>

    Interrupt the program and reschedule execution for maximum.
    §

    fn wait_for(\n &mut self,\n duration: u32,\n) -> Result<(), <Ext<LP> as Externalities>::UnrecoverableError>

    Interrupt the program and reschedule execution in duration.
    §

    fn wait_up_to(\n &mut self,\n duration: u32,\n) -> Result<bool, <Ext<LP> as Externalities>::UnrecoverableError>

    Interrupt the program and reschedule execution for maximum,\nbut not more than duration.
    §

    fn wake(\n &mut self,\n waker_id: MessageId,\n delay: u32,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Wake the waiting message and move it to the processing queue.
    §

    fn create_program(\n &mut self,\n packet: InitPacket,\n delay: u32,\n) -> Result<(MessageId, ActorId), <Ext<LP> as Externalities>::FallibleError>

    Send init message to create a new program.
    §

    fn reply_deposit(\n &mut self,\n message_id: MessageId,\n amount: u64,\n) -> Result<(), <Ext<LP> as Externalities>::FallibleError>

    Create deposit to handle reply on given message.
    §

    fn random(\n &self,\n) -> Result<(&[u8], u32), <Ext<LP> as Externalities>::UnrecoverableError>

    Returns a random seed for the current block with message id as a subject, along with the time in the past since when it was determinable by chain observers.
    §

    fn forbidden_funcs(&self) -> &BTreeSet<SyscallName>

    Return the set of functions that are forbidden to be called.
    §

    fn send(\n &mut self,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>

    Send message to another program.
    §

    fn reservation_send(\n &mut self,\n id: ReservationId,\n msg: HandlePacket,\n delay: u32,\n) -> Result<MessageId, Self::FallibleError>

    Send message to another program using gas from reservation.
    §

    fn reply(&mut self, msg: ReplyPacket) -> Result<MessageId, Self::FallibleError>

    Produce reply to the current message.
    §

    fn reservation_reply(\n &mut self,\n id: ReservationId,\n msg: ReplyPacket,\n) -> Result<MessageId, Self::FallibleError>

    Produce reply to the current message from reservation.
    ","Externalities","pallet_gear::Ext"],["
    §

    impl<LP> ProcessorExternalities for Ext<LP>
    where\n LP: LazyPagesInterface,

    Empty implementation for non-substrate (and non-lazy-pages) using

    \n
    §

    fn new(context: ProcessorContext) -> Ext<LP>

    Create new
    §

    fn into_ext_info<Context>(\n self,\n ctx: &mut Context,\n memory: &impl Memory<Context>,\n) -> Result<ExtInfo, MemoryError>

    Convert externalities into info.
    §

    fn lazy_pages_init_for_program<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n prog_id: ActorId,\n memory_infix: MemoryInfix,\n stack_end: Option<Page<gear_core::::pages::WasmPage::{constant#0}>>,\n globals_config: GlobalsAccessConfig,\n lazy_pages_costs: LazyPagesCosts,\n)

    Protect and save storage keys for pages which has no data
    §

    fn lazy_pages_post_execution_actions<Context>(\n ctx: &mut Context,\n mem: &mut impl Memory<Context>,\n)

    Lazy pages program post execution actions
    §

    fn lazy_pages_status() -> Status

    Returns lazy pages status
    ","ProcessorExternalities","pallet_gear::Ext"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr-4132/type.impl/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js index bc4729526fb..233c063f7da 100644 --- a/pr-4132/type.impl/gprimitives/struct.ActorId.js +++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"gear_common":[["
    §

    impl ActorIdExt for ActorId

    §

    const SYSTEM: ActorId = _

    System program identifier.
    §

    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 ActorIdas bytes array.

    \n
    ",0,"gear_common::ProgramId"],["
    §

    impl ActorId

    pub const fn new(array: [u8; 32]) -> ActorId

    Creates a new ActorId from a 32-byte array.

    \n
    ",0,"gear_common::ProgramId"],["
    §

    impl ActorId

    pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>

    Returns the ss58-check address with default ss58 version.

    \n

    pub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>

    Returns the ss58-check address with given ss58 version.

    \n

    pub fn to_address_lossy(&self) -> H160

    Returns [H160] with possible loss of the first 12 bytes.

    \n
    ",0,"gear_common::ProgramId"],["
    §

    impl ActorId

    pub const fn zero() -> ActorId

    Creates a new zero ActorId.

    \n

    pub fn is_zero(&self) -> bool

    Checks whether ActorId is zero.

    \n
    ",0,"gear_common::ProgramId"],["
    §

    impl<__AsMutT> AsMut<__AsMutT> for ActorId
    where\n [u8; 32]: AsMut<__AsMutT>,\n __AsMutT: ?Sized,

    §

    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"],["
    §

    impl<__AsRefT> AsRef<__AsRefT> for ActorId
    where\n [u8; 32]: AsRef<__AsRefT>,\n __AsRefT: ?Sized,

    §

    fn as_ref(&self) -> &__AsRefT

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<__AsRefT>","gear_common::ProgramId"],["
    §

    impl Clone for ActorId

    §

    fn clone(&self) -> ActorId

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","gear_common::ProgramId"],["
    §

    impl Debug for ActorId

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","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"],["
    §

    impl Default for ActorId

    §

    fn default() -> ActorId

    Returns the “default value” for a type. Read more
    ","Default","gear_common::ProgramId"],["
    §

    impl Display for ActorId

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","gear_common::ProgramId"],["
    §

    impl Encode for ActorId

    §

    fn size_hint(&self) -> usize

    If possible give a hint of expected size of the encoding. Read more
    §

    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 encode(&self) -> Vec<u8>

    Convert self to an owned vector.
    §

    fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
    where\n __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
    ","Encode","gear_common::ProgramId"],["
    §

    impl From<[u8; 32]> for ActorId

    §

    fn from(original: [u8; 32]) -> ActorId

    Converts to this type from the input type.
    ","From<[u8; 32]>","gear_common::ProgramId"],["
    §

    impl From<H160> for ActorId

    §

    fn from(h160: H160) -> ActorId

    Converts to this type from the input type.
    ","From","gear_common::ProgramId"],["
    §

    impl From<H256> for ActorId

    §

    fn from(h256: H256) -> ActorId

    Converts to this type from the input type.
    ","From","gear_common::ProgramId"],["
    §

    impl From<u64> for ActorId

    §

    fn from(value: u64) -> ActorId

    Converts to this type from the input type.
    ","From","gear_common::ProgramId"],["
    §

    impl FromStr for ActorId

    §

    type Err = ConversionError

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<ActorId, <ActorId as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    ","FromStr","gear_common::ProgramId"],["
    §

    impl Hash for ActorId

    §

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","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

    §

    fn cmp(&self, other: &ActorId) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","gear_common::ProgramId"],["
    §

    impl PartialEq for ActorId

    §

    fn eq(&self, other: &ActorId) -> 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,\nand should not be overridden without very good reason.
    ","PartialEq","gear_common::ProgramId"],["
    §

    impl PartialOrd for ActorId

    §

    fn partial_cmp(&self, other: &ActorId) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd","gear_common::ProgramId"],["
    §

    impl TryFrom<&[u8]> for ActorId

    §

    type Error = ConversionError

    The type returned in the event of a conversion error.
    §

    fn try_from(slice: &[u8]) -> Result<ActorId, <ActorId as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8]>","gear_common::ProgramId"],["
    §

    impl TypeInfo for ActorId

    §

    type Identity = ActorId

    The type identifying for which type info is provided. Read more
    §

    fn type_info() -> Type

    Returns the static type identifier for Self.
    ","TypeInfo","gear_common::ProgramId"],["
    §

    impl Copy for ActorId

    ","Copy","gear_common::ProgramId"],["
    §

    impl EncodeLike for ActorId

    ","EncodeLike","gear_common::ProgramId"],["
    §

    impl Eq for ActorId

    ","Eq","gear_common::ProgramId"],["
    §

    impl StructuralPartialEq for ActorId

    ","StructuralPartialEq","gear_common::ProgramId"]] +"gear_common":[["
    source§

    impl ActorIdExt for ActorId

    source§

    const SYSTEM: ActorId = _

    System program identifier.
    source§

    fn generate_from_user(code_id: CodeId, salt: &[u8]) -> ActorId

    Generates ActorId from given CodeId and salt.
    source§

    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 ActorIdas bytes array.

    \n
    ",0,"gear_common::ProgramId"],["
    §

    impl ActorId

    pub const fn new(array: [u8; 32]) -> ActorId

    Creates a new ActorId from a 32-byte array.

    \n
    ",0,"gear_common::ProgramId"],["
    §

    impl ActorId

    pub fn to_ss58check(&self) -> Result<Ss58Address, ConversionError>

    Returns the ss58-check address with default ss58 version.

    \n

    pub fn to_ss58check_with_version(\n &self,\n version: u16,\n) -> Result<Ss58Address, ConversionError>

    Returns the ss58-check address with given ss58 version.

    \n

    pub fn to_address_lossy(&self) -> H160

    Returns [H160] with possible loss of the first 12 bytes.

    \n
    ",0,"gear_common::ProgramId"],["
    §

    impl ActorId

    pub const fn zero() -> ActorId

    Creates a new zero ActorId.

    \n

    pub fn is_zero(&self) -> bool

    Checks whether ActorId is zero.

    \n
    ",0,"gear_common::ProgramId"],["
    §

    impl<__AsMutT> AsMut<__AsMutT> for ActorId
    where\n [u8; 32]: AsMut<__AsMutT>,\n __AsMutT: ?Sized,

    §

    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"],["
    §

    impl<__AsRefT> AsRef<__AsRefT> for ActorId
    where\n [u8; 32]: AsRef<__AsRefT>,\n __AsRefT: ?Sized,

    §

    fn as_ref(&self) -> &__AsRefT

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<__AsRefT>","gear_common::ProgramId"],["
    §

    impl Clone for ActorId

    §

    fn clone(&self) -> ActorId

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","gear_common::ProgramId"],["
    §

    impl Debug for ActorId

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","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"],["
    §

    impl Default for ActorId

    §

    fn default() -> ActorId

    Returns the “default value” for a type. Read more
    ","Default","gear_common::ProgramId"],["
    §

    impl Display for ActorId

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","gear_common::ProgramId"],["
    §

    impl Encode for ActorId

    §

    fn size_hint(&self) -> usize

    If possible give a hint of expected size of the encoding. Read more
    §

    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 encode(&self) -> Vec<u8>

    Convert self to an owned vector.
    §

    fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(\n &self,\n f: __CodecUsingEncodedCallback,\n) -> __CodecOutputReturn
    where\n __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
    ","Encode","gear_common::ProgramId"],["
    §

    impl From<[u8; 32]> for ActorId

    §

    fn from(original: [u8; 32]) -> ActorId

    Converts to this type from the input type.
    ","From<[u8; 32]>","gear_common::ProgramId"],["
    §

    impl From<H160> for ActorId

    §

    fn from(h160: H160) -> ActorId

    Converts to this type from the input type.
    ","From","gear_common::ProgramId"],["
    §

    impl From<H256> for ActorId

    §

    fn from(h256: H256) -> ActorId

    Converts to this type from the input type.
    ","From","gear_common::ProgramId"],["
    §

    impl From<u64> for ActorId

    §

    fn from(value: u64) -> ActorId

    Converts to this type from the input type.
    ","From","gear_common::ProgramId"],["
    §

    impl FromStr for ActorId

    §

    type Err = ConversionError

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<ActorId, <ActorId as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    ","FromStr","gear_common::ProgramId"],["
    §

    impl Hash for ActorId

    §

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","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

    §

    fn cmp(&self, other: &ActorId) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","gear_common::ProgramId"],["
    §

    impl PartialEq for ActorId

    §

    fn eq(&self, other: &ActorId) -> 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,\nand should not be overridden without very good reason.
    ","PartialEq","gear_common::ProgramId"],["
    §

    impl PartialOrd for ActorId

    §

    fn partial_cmp(&self, other: &ActorId) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd","gear_common::ProgramId"],["
    §

    impl TryFrom<&[u8]> for ActorId

    §

    type Error = ConversionError

    The type returned in the event of a conversion error.
    §

    fn try_from(slice: &[u8]) -> Result<ActorId, <ActorId as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8]>","gear_common::ProgramId"],["
    §

    impl TypeInfo for ActorId

    §

    type Identity = ActorId

    The type identifying for which type info is provided. Read more
    §

    fn type_info() -> Type

    Returns the static type identifier for Self.
    ","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