diff --git a/pr-4132/gear_common/auxiliary/mailbox/struct.MailboxStorageWrap.html b/pr-4132/gear_common/auxiliary/mailbox/struct.MailboxStorageWrap.html index cf7f0c1dde6..30b5907c4fe 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 cf2dfd7c396..1ecb9f12593 100644 --- a/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html +++ b/pr-4132/gear_common/auxiliary/mailbox/type.MailboxedMessage.html @@ -1,2 +1,2 @@ -MailboxedMessage in gear_common::auxiliary::mailbox - Rust

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

source ·
pub type MailboxedMessage = UserStoredMessage;
Expand description

Type represents message stored in the mailbox.

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

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

source ·
pub type MailboxedMessage = UserStoredMessage;
Expand description

Type represents message stored in the mailbox.

Aliased Type§

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

Trait gear_common::code_storage::CodeStorage

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

Trait to work with program binary codes in a storage.

-

Required Associated Types§

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 3b9c7ddca0c..4f47a136aa1 100644 --- a/pr-4132/gear_common/enum.LockId.html +++ b/pr-4132/gear_common/enum.LockId.html @@ -1,4 +1,4 @@ -LockId in gear_common - Rust

Enum gear_common::LockId

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

Enum gear_common::LockId

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

Waitlist = 1

The gas lock is provided by the waitlist.

§

Reservation = 2

The gas lock is provided by reservation.

§

DispatchStash = 3

The gas lock is provided by dispatch stash.

-

Trait Implementations§

source§

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

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 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 af006d91c3a..48d732f13bb 100644 --- a/pr-4132/gear_common/enum.Program.html +++ b/pr-4132/gear_common/enum.Program.html @@ -1,4 +1,4 @@ -Program in gear_common - Rust

Enum gear_common::Program

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

Enum gear_common::Program

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

Variants§

§

Active(ActiveProgram<BlockNumber>)

Program in active state.

§

Exited(ActorId)

Program has been exited (gr_exit was called)

§

Terminated(ActorId)

Program has been terminated (init was failed)

-

Implementations§

source§

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

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 +

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 BlockNumber: Copy, - ActiveProgram<BlockNumber>: Decode,

source§

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

§

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

Attempt to deserialise the value from input.
§

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

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

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

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

fn encoded_fixed_size() -> Option<usize>

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

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

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

fn encoded_fixed_size() -> Option<usize>

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

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

source§

fn size_hint(&self) -> usize

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

fn encode_to<__CodecOutputEdqy>( + 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>( &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
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( + 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( prog_with_status: Program<BlockNumber>, -) -> Result<ActiveProgram<BlockNumber>, <ActiveProgram<BlockNumber> as TryFrom<Program<BlockNumber>>>::Error>

Performs the conversion.
source§

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

Performs the conversion.
§

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

§

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 + 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 BlockNumber: Copy, - ActiveProgram<BlockNumber>: Encode,

source§

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

source§

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

§

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

§

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

Auto Trait Implementations§

§

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

§

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

§

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

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

fn 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 8a6bf445930..ac2af343449 100644 --- a/pr-4132/gear_common/gas_provider/enum.LockId.html +++ b/pr-4132/gear_common/gas_provider/enum.LockId.html @@ -1,4 +1,4 @@ -LockId in gear_common::gas_provider - Rust

Enum gear_common::gas_provider::LockId

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

Enum gear_common::gas_provider::LockId

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

Waitlist = 1

The gas lock is provided by the waitlist.

§

Reservation = 2

The gas lock is provided by reservation.

§

DispatchStash = 3

The gas lock is provided by dispatch stash.

-

Trait Implementations§

source§

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

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

Trait to work with program data in a storage.

-

Required Associated Types§

Required Methods§

source

fn pages_final_prefix() -> [u8; 32]

Final full prefix that prefixes all keys of memory pages.

+

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.

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 e2605931597..d8e22f5089b 100644 --- a/pr-4132/gear_common/storage/struct.MailboxKeyGen.html +++ b/pr-4132/gear_common/storage/struct.MailboxKeyGen.html @@ -1,5 +1,5 @@ MailboxKeyGen in gear_common::storage - Rust

Struct gear_common::storage::MailboxKeyGen

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

Key generator for gear’s mailbox implementation.

-

Trait Implementations§

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 141f217501a..7d29922ebe2 100644 --- a/pr-4132/gear_common/storage/struct.QueueKeyGen.html +++ b/pr-4132/gear_common/storage/struct.QueueKeyGen.html @@ -1,5 +1,5 @@ QueueKeyGen in gear_common::storage - Rust

Struct gear_common::storage::QueueKeyGen

source ·
pub struct QueueKeyGen;
Expand description

Key generator for gear’s message queue implementation.

-

Trait Implementations§

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 15c1fd157e9..05cedcc41bd 100644 --- a/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html +++ b/pr-4132/gear_common/storage/struct.WaitlistKeyGen.html @@ -1,5 +1,5 @@ WaitlistKeyGen in gear_common::storage - Rust

Struct gear_common::storage::WaitlistKeyGen

source ·
pub struct WaitlistKeyGen;
Expand description

Key generator for gear’s waitlist implementation.

-

Trait Implementations§

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 c2eb84b2393..52f7fcaaf0f 100644 --- a/pr-4132/gear_common/storage/trait.DoubleMapStorage.html +++ b/pr-4132/gear_common/storage/trait.DoubleMapStorage.html @@ -52,4 +52,4 @@ key2: Self::Key2, f: F, ) -> Option<R>

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

-

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DoubleMapStorage for MailboxStorageWrap

§

type Key1 = ActorId

§

type Key2 = MessageId

§

type Value = (UserStoredMessage, Interval<u32>)

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

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

source§

impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>
where +

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type Key = ActorId

§

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

§

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

source§

impl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen> IterableByKeyMap<<T as DoubleMapStorage>::Value> for MailboxImpl<T, Value, BlockNumber, Error, OutputError, Callbacks, KeyGen>
where T: DoubleMapStorage<Value = (Value, Interval<BlockNumber>)> + IterableByKeyMap<T::Value, Key = T::Key1>, Error: MailboxError, OutputError: From<Error>, diff --git a/pr-4132/gear_common/storage/trait.KeyFor.html b/pr-4132/gear_common/storage/trait.KeyFor.html index b072394addd..8841df7d515 100644 --- a/pr-4132/gear_common/storage/trait.KeyFor.html +++ b/pr-4132/gear_common/storage/trait.KeyFor.html @@ -10,4 +10,4 @@

Required Associated Types§

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§

\ No newline at end of file +

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 diff --git a/pr-4132/gear_common/struct.ActiveProgram.html b/pr-4132/gear_common/struct.ActiveProgram.html index 6f66a7c44e2..321d5a8f516 100644 --- a/pr-4132/gear_common/struct.ActiveProgram.html +++ b/pr-4132/gear_common/struct.ActiveProgram.html @@ -1,26 +1,26 @@ -ActiveProgram in gear_common - Rust

Struct gear_common::ActiveProgram

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

Struct gear_common::ActiveProgram

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

Active program in storage.

Fields§

§allocations_tree_len: u32

Continuous intervals amount in program allocations.

§memory_infix: MemoryInfix

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

-
§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>

Gas reservation map.

+
§gas_reservation_map: BTreeMap<ReservationId, GasReservationSlot>

Gas reservation map.

§code_hash: H256

Code hash of the program.

-
§code_exports: BTreeSet<DispatchKind>

Set of supported dispatch kinds.

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

Amount of static pages.

-
§state: ProgramState

Initialization state of the program.

+
§code_exports: BTreeSet<DispatchKind>

Set of supported dispatch kinds.

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

Amount of static pages.

+
§state: ProgramState

Initialization state of the program.

§expiration_block: BlockNumber

Block number when the program will be expired.

-

Trait Implementations§

source§

impl<BlockNumber> Clone for ActiveProgram<BlockNumber>
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>( +

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>( __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
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>( + I: Input,

Attempt to 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>( &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
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( + 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( prog_with_status: Program<BlockNumber>, -) -> 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 +) -> 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 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 ae23d273be6..a1f809bd4c0 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
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>( + __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>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<CodeId, Error>
where __CodecInputEdqy: Input,

Attempt to deserialise the value from input.
§

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

Struct gear_common::MemoryInfix

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

Struct defines infix of memory pages storage.

-

Implementations§

source§

impl MemoryInfix

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>( +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>( __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
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>( + I: Input,

Attempt to 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>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
where - __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>( + __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>( &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
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 + __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 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 b4968b2fa3d..23d057c7109 100644 --- a/pr-4132/gear_common/struct.MessageId.html +++ b/pr-4132/gear_common/struct.MessageId.html @@ -31,11 +31,11 @@ __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,

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

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
§

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

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

impl MessageIdExt for MessageId

§

fn generate_from_user( block_number: u32, user_id: ActorId, local_nonce: u128, -) -> MessageId

Generates MessageId for non-program outgoing message.
source§

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

Generates MessageId for program outgoing message.
source§

fn generate_reply(origin_msg_id: MessageId) -> MessageId

Generates MessageId for reply message depend on status code. Read 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 +) -> 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 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 699ff414e4c..91aa23b704a 100644 --- a/pr-4132/gear_common/struct.PageBuf.html +++ b/pr-4132/gear_common/struct.PageBuf.html @@ -1,7 +1,7 @@ -PageBuf in gear_common - Rust

Struct gear_common::PageBuf

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

Buffer for gear page data.

-

Implementations§

source§

impl PageBuf

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 in gear_common - Rust

Struct gear_common::PageBuf

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

Buffer for gear page data.

+

Implementations§

§

impl PageBuf

pub fn new_zeroed() -> PageBuf

Returns new page buffer with zeroed data.

+

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

Creates PageBuf from inner buffer. If the buffer has the size of GearPage then no reallocations occur. In other case it will be extended with zeros.

@@ -2454,16 +2454,16 @@
§Examples<

ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

To lowercase the value in-place, use make_ascii_lowercase.

-

Trait Implementations§

source§

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

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 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
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 + I: Input,

Attempt to 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 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
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 + 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 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 2a6cea59b11..d0d4addcc85 100644 --- a/pr-4132/gear_common/struct.ReservationId.html +++ b/pr-4132/gear_common/struct.ReservationId.html @@ -35,7 +35,7 @@ and should not be overridden without very good reason.

§

impl PartialOrd for ReservationId

§

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
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 +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 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 2f46fe46053..afa178bc6e3 100644 --- a/pr-4132/gear_common/type.GearPage.html +++ b/pr-4132/gear_common/type.GearPage.html @@ -1,2 +1,2 @@ -GearPage in gear_common - Rust

Type Alias gear_common::GearPage

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

Page of gear page size - 16 kiB.

+GearPage in gear_common - Rust

Type Alias gear_common::GearPage

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

Page of gear page size - 16 kiB.

Aliased Type§

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

Type Alias gear_common::ProgramId

source ·
pub type ProgramId = ActorId;
Expand description

Program identifier.

+ProgramId in gear_common - Rust

Type Alias gear_common::ProgramId

pub type ProgramId = ActorId;
Expand description

Program identifier.

Aliased Type§

struct ProgramId(/* private fields */);

Trait Implementations§

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_rpc/trait.GearRuntimeApi.html b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html index cc11f70a1d4..e182c7b671a 100644 --- a/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html +++ b/pr-4132/pallet_gear_rpc/trait.GearRuntimeApi.html @@ -1,4 +1,4 @@ -GearRuntimeApi in pallet_gear_rpc - Rust

Trait pallet_gear_rpc::GearRuntimeApi

pub trait GearRuntimeApi<Block>: Core<Block>
where +GearRuntimeApi in pallet_gear_rpc - Rust

Trait pallet_gear_rpc::GearRuntimeApi

source ·
pub trait GearRuntimeApi<Block>: Core<Block>
where Block: Block,
{ // Provided methods fn calculate_reply_for_handle( @@ -80,7 +80,7 @@ __runtime_api_at_param__: <Block as Block>::Hash, program_id: H256, ) -> Result<Result<H256, Vec<u8>>, ApiError> { ... } -}

Provided Methods§

Provided Methods§

source

fn calculate_reply_for_handle( &self, __runtime_api_at_param__: <Block as Block>::Hash, origin: H256, @@ -89,7 +89,7 @@ gas_limit: u64, value: u128, allowance_multiplier: u64, -) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>

fn calculate_gas_info( +) -> Result<Result<ReplyInfo, Vec<u8>>, ApiError>

source

fn calculate_gas_info( &self, __runtime_api_at_param__: <Block as Block>::Hash, source: H256, @@ -99,18 +99,18 @@ allow_other_panics: bool, initial_gas: Option<u64>, allowance_multiplier: Option<u64>, -) -> Result<Result<GasInfo, Vec<u8>>, ApiError>

fn gear_run_extrinsic( +) -> Result<Result<GasInfo, Vec<u8>>, ApiError>

source

fn gear_run_extrinsic( &self, __runtime_api_at_param__: <Block as Block>::Hash, max_gas: Option<u64>, ) -> Result<<Block as Block>::Extrinsic, ApiError>

Generate inherent-like extrinsic that runs message queue processing.

-

fn read_state( +

source

fn read_state( &self, __runtime_api_at_param__: <Block as Block>::Hash, program_id: H256, payload: Vec<u8>, allowance_multiplier: Option<u64>, -) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>

fn read_state_using_wasm( +) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>

source

fn read_state_using_wasm( &self, __runtime_api_at_param__: <Block as Block>::Hash, program_id: H256, @@ -119,12 +119,12 @@ wasm: Vec<u8>, argument: Option<Vec<u8>>, allowance_multiplier: Option<u64>, -) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>

fn read_metahash( +) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>

source

fn read_metahash( &self, __runtime_api_at_param__: <Block as Block>::Hash, program_id: H256, allowance_multiplier: Option<u64>, -) -> Result<Result<H256, Vec<u8>>, ApiError>

fn calculate_gas_info_before_version_2( +) -> Result<Result<H256, Vec<u8>>, ApiError>

source

fn calculate_gas_info_before_version_2( &self, __runtime_api_at_param__: <Block as Block>::Hash, source: H256, @@ -133,12 +133,12 @@ value: u128, allow_other_panics: bool, initial_gas: Option<u64>, -) -> Result<Result<GasInfo, Vec<u8>>, ApiError>

👎Deprecated

fn read_state_before_version_2( +) -> Result<Result<GasInfo, Vec<u8>>, ApiError>

👎Deprecated
source

fn read_state_before_version_2( &self, __runtime_api_at_param__: <Block as Block>::Hash, program_id: H256, payload: Vec<u8>, -) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>

👎Deprecated

fn read_state_using_wasm_before_version_2( +) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>

👎Deprecated
source

fn read_state_using_wasm_before_version_2( &self, __runtime_api_at_param__: <Block as Block>::Hash, program_id: H256, @@ -146,9 +146,9 @@ fn_name: Vec<u8>, wasm: Vec<u8>, argument: Option<Vec<u8>>, -) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>

👎Deprecated

fn read_metahash_before_version_2( +) -> Result<Result<Vec<u8>, Vec<u8>>, ApiError>

👎Deprecated
source

fn read_metahash_before_version_2( &self, __runtime_api_at_param__: <Block as Block>::Hash, program_id: H256, -) -> Result<Result<H256, Vec<u8>>, ApiError>

👎Deprecated

Trait Implementations§

§

impl<Block> RuntimeApiInfo for dyn GearApi<Block>
where - Block: Block,

§

const ID: [u8; 8] = _

The identifier of the runtime api.
§

const VERSION: u32 = 2u32

The version of the runtime api.

Implementors§

\ No newline at end of file +) -> Result<Result<H256, Vec<u8>>, ApiError>

👎Deprecated

Trait Implementations§

source§

impl<Block> RuntimeApiInfo for dyn GearApi<Block>
where + Block: Block,

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 2u32

The version of the runtime api.

Implementors§

\ No newline at end of file diff --git a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html index 78a1e09d462..6bc608963b1 100644 --- a/pr-4132/src/gear_common/auxiliary/mailbox.rs.html +++ b/pr-4132/src/gear_common/auxiliary/mailbox.rs.html @@ -183,7 +183,7 @@ use core::cell::RefCell; use gear_core::{ ids::{MessageId, ProgramId}, - message::UserStoredMessage, + message::UserStoredMessage, }; /// Mailbox implementation that can be used in a native, non-wasm runtimes. @@ -199,7 +199,7 @@ /// Block number type. pub type BlockNumber = u32; /// Type represents message stored in the mailbox. -pub type MailboxedMessage = UserStoredMessage; +pub type MailboxedMessage = UserStoredMessage; std::thread_local! { // Definition of the mailbox (`StorageDoubleMap`) global storage, accessed by the `Mailbox` trait implementor. diff --git a/pr-4132/src/gear_common/code_storage.rs.html b/pr-4132/src/gear_common/code_storage.rs.html index e0b14d44d85..f782e7e86b9 100644 --- a/pr-4132/src/gear_common/code_storage.rs.html +++ b/pr-4132/src/gear_common/code_storage.rs.html @@ -125,7 +125,7 @@ use super::*; use crate::storage::MapStorage; -use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId}; +use gear_core::code::{CodeAndId, InstrumentedCode, InstrumentedCodeAndId}; #[derive(Clone, Copy, Debug)] pub enum Error { @@ -135,7 +135,7 @@ /// Trait to work with program binary codes in a storage. pub trait CodeStorage { - type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>; + type InstrumentedCodeStorage: MapStorage<Key = CodeId, Value = InstrumentedCode>; type InstrumentedLenStorage: MapStorage<Key = CodeId, Value = u32>; type OriginalCodeStorage: MapStorage<Key = CodeId, Value = Vec<u8>>; type MetadataStorage: MapStorage<Key = CodeId, Value = CodeMetadata>; @@ -148,16 +148,16 @@ Self::InstrumentedCodeStorage::clear(); } - fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> { - let (code, code_id) = code_and_id.into_parts(); - let (code, original_code) = code.into_parts(); + fn add_code(code_and_id: CodeAndId, metadata: CodeMetadata) -> Result<(), Error> { + let (code, code_id) = code_and_id.into_parts(); + let (code, original_code) = code.into_parts(); Self::InstrumentedCodeStorage::mutate(code_id, |maybe| { if maybe.is_some() { return Err(CodeStorageError::DuplicateItem); } - Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32); + Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32); Self::OriginalCodeStorage::insert(code_id, original_code); Self::MetadataStorage::insert(code_id, metadata); @@ -167,10 +167,10 @@ } /// Update the corresponding code in the storage. - fn update_code(code_and_id: InstrumentedCodeAndId) { - let (code, code_id) = code_and_id.into_parts(); + fn update_code(code_and_id: InstrumentedCodeAndId) { + let (code, code_id) = code_and_id.into_parts(); - Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32); + Self::InstrumentedLenStorage::insert(code_id, code.code().len() as u32); Self::InstrumentedCodeStorage::insert(code_id, code); } @@ -196,7 +196,7 @@ }) } - fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { + fn get_code(code_id: CodeId) -> Option<InstrumentedCode> { Self::InstrumentedCodeStorage::get(&code_id) } diff --git a/pr-4132/src/gear_common/event.rs.html b/pr-4132/src/gear_common/event.rs.html index dacfab49860..f6350d8009b 100644 --- a/pr-4132/src/gear_common/event.rs.html +++ b/pr-4132/src/gear_common/event.rs.html @@ -268,7 +268,7 @@ //! This module contains components for depositing proper //! and extensive data about actions happen. -use gear_core::{ids::MessageId, message::MessageWaitedType}; +use gear_core::{ids::MessageId, message::MessageWaitedType}; use sp_runtime::{ codec::{self, Decode, Encode}, scale_info::{self, TypeInfo}, @@ -362,13 +362,13 @@ WaitUpToCalledFull, } -impl From<MessageWaitedType> for MessageWaitedRuntimeReason { - fn from(src: MessageWaitedType) -> Self { +impl From<MessageWaitedType> for MessageWaitedRuntimeReason { + fn from(src: MessageWaitedType) -> Self { match src { - MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled, - MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled, - MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled, - MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull, + MessageWaitedType::Wait => MessageWaitedRuntimeReason::WaitCalled, + MessageWaitedType::WaitFor => MessageWaitedRuntimeReason::WaitForCalled, + MessageWaitedType::WaitUpTo => MessageWaitedRuntimeReason::WaitUpToCalled, + MessageWaitedType::WaitUpToFull => MessageWaitedRuntimeReason::WaitUpToCalledFull, } } } diff --git a/pr-4132/src/gear_common/program_storage.rs.html b/pr-4132/src/gear_common/program_storage.rs.html index ff83ce886ab..78e5d8051d3 100644 --- a/pr-4132/src/gear_common/program_storage.rs.html +++ b/pr-4132/src/gear_common/program_storage.rs.html @@ -221,7 +221,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. -use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage}; +use gear_core::pages::{numerated::tree::IntervalsTree, WasmPage}; use super::*; use crate::storage::{MapStorage, TripleMapStorage}; @@ -263,7 +263,7 @@ Key3 = GearPage, Value = PageBuf, >; - type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>; + type AllocationsMap: MapStorage<Key = ProgramId, Value = IntervalsTree<WasmPage>>; /// Attempt to remove all items from all the associated maps. fn reset() { @@ -321,11 +321,11 @@ } } - fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { + fn allocations(program_id: ProgramId) -> Option<IntervalsTree<WasmPage>> { Self::AllocationsMap::get(&program_id) } - fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) { + fn set_allocations(program_id: ProgramId, allocations: IntervalsTree<WasmPage>) { Self::update_active_program(program_id, |program| { program.allocations_tree_len = u32::try_from(allocations.intervals_amount()) .unwrap_or_else(|err| { diff --git a/pr-4132/src/gear_common/storage/primitives/key.rs.html b/pr-4132/src/gear_common/storage/primitives/key.rs.html index f74f1614998..dd3710fb157 100644 --- a/pr-4132/src/gear_common/storage/primitives/key.rs.html +++ b/pr-4132/src/gear_common/storage/primitives/key.rs.html @@ -113,7 +113,7 @@ use core::marker::PhantomData; use gear_core::{ ids::{MessageId, ProgramId}, - message::{StoredDispatch, UserStoredMessage}, + message::{StoredDispatch, UserStoredMessage}, }; /// Represents logic of providing key as specified @@ -138,10 +138,10 @@ // destination parameter. impl<T: Origin> KeyFor for MailboxKeyGen<T> { type Key = (T, MessageId); - type Value = UserStoredMessage; + type Value = UserStoredMessage; fn key_for(value: &Self::Value) -> Self::Key { - (value.destination().cast(), value.id()) + (value.destination().cast(), value.id()) } } @@ -152,10 +152,10 @@ // it's `MessageId` id parameter. impl KeyFor for QueueKeyGen { type Key = MessageId; - type Value = StoredDispatch; + type Value = StoredDispatch; fn key_for(value: &Self::Value) -> Self::Key { - value.id() + value.id() } } @@ -166,10 +166,10 @@ // `ProgramId` and `MessageId` id parameters. impl KeyFor for WaitlistKeyGen { type Key = (ProgramId, MessageId); - type Value = StoredDispatch; + type Value = StoredDispatch; fn key_for(value: &Self::Value) -> Self::Key { - (value.destination(), value.id()) + (value.destination(), value.id()) } }

\ No newline at end of file diff --git a/pr-4132/trait.impl/core/convert/trait.From.js b/pr-4132/trait.impl/core/convert/trait.From.js index f8e9a1e041d..a0d449ea8ac 100644 --- a/pr-4132/trait.impl/core/convert/trait.From.js +++ b/pr-4132/trait.impl/core/convert/trait.From.js @@ -1,7 +1,7 @@ (function() {var implementors = { "gclient":[["impl From<(Api, Pair)> for GearApi"],["impl From<DispatchStatus> for DispatchStatus"],["impl From<Error> for Error"],["impl From<FromHexError> for Error"],["impl From<ParseError> for Error"],["impl From<Error> for Error"],["impl From<GearApi> for Signer"],["impl From<Api> for GearApi"],["impl From<Signer> for GearApi"],["impl From<SocketAddrV4> for WSAddress"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"]], "gcore":[["impl From<ExtError> for Error"],["impl From<SyscallError> for Result<()>"]], -"gear_common":[["impl From<MessageWaitedType> for MessageWaitedRuntimeReason"],["impl<Balance, Gas> From<GasMultiplier<Balance, Gas>> for GasMultiplier
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"],["impl<E: BackendSyscallError> From<E> for UndefinedTerminationReason"],["impl<Mem> From<Mem> for BackendMemory<Mem>"]], "gear_core_errors":[["impl From<ErrorReplyReason> for ReplyCode"],["impl From<ExecutionError> for ExtError"],["impl From<MemoryError> for ExtError"],["impl From<MessageError> for ExtError"],["impl From<ReservationError> for ExtError"],["impl From<SimpleExecutionError> for ErrorReplyReason"],["impl From<SimpleExecutionError> for SignalCode"],["impl From<SimpleProgramCreationError> for ErrorReplyReason"],["impl From<SuccessReplyReason> for ReplyCode"],["impl From<()> for ExtError"],["impl From<()> for ReplyCode"],["impl From<()> for SignalCode"]], diff --git a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js index 1b5be40ec92..3ee80c804ae 100644 --- a/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js +++ b/pr-4132/type.impl/gear_core/message/user/struct.UserStoredMessage.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"gear_common":[["
source§

impl Clone for UserStoredMessage

source§

fn clone(&self) -> UserStoredMessage

Returns a copy of the value. Read 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"]] +"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"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr-4132/type.impl/gear_core/pages/struct.Page.js b/pr-4132/type.impl/gear_core/pages/struct.Page.js index ab165e51afb..fb9c4e65442 100644 --- a/pr-4132/type.impl/gear_core/pages/struct.Page.js +++ b/pr-4132/type.impl/gear_core/pages/struct.Page.js @@ -1,4 +1,4 @@ (function() {var type_impls = { -"gear_common":[["
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_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_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/gprimitives/struct.ActorId.js b/pr-4132/type.impl/gprimitives/struct.ActorId.js index 233c063f7da..bc4729526fb 100644 --- a/pr-4132/type.impl/gprimitives/struct.ActorId.js +++ b/pr-4132/type.impl/gprimitives/struct.ActorId.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"gear_common":[["
source§

impl ActorIdExt for ActorId

source§

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"]] +"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"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file