Enum HandleKind
pub enum HandleKind {
+HandleKind in pallet_gear_rpc_runtime_api - Rust pub enum HandleKind {
Init(Vec<u8>),
InitByHash(CodeId),
Handle(ActorId),
Reply(MessageId, ReplyCode),
Signal(MessageId, SignalCode),
-}
Variants§
§Init(Vec<u8>)
§InitByHash(CodeId)
§Handle(ActorId)
§Reply(MessageId, ReplyCode)
§Signal(MessageId, SignalCode)
Trait Implementations§
§impl Clone for HandleKind
§fn clone(&self) -> HandleKind
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for HandleKind
§impl Decode for HandleKind
§fn decode<__CodecInputEdqy>(
+}Variants§
§Init(Vec<u8>)
§InitByHash(CodeId)
§Handle(ActorId)
§Reply(MessageId, ReplyCode)
§Signal(MessageId, SignalCode)
Trait Implementations§
Source§impl Clone for HandleKind
Source§fn clone(&self) -> HandleKind
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for HandleKind
Source§impl Decode for HandleKind
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<HandleKind, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
@@ -12,12 +12,12 @@
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§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Source§impl Encode for HandleKind
Source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moreSource§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read more§impl TypeInfo for HandleKind
§impl EncodeLike for HandleKind
Auto Trait Implementations§
§impl Freeze for HandleKind
§impl RefUnwindSafe for HandleKind
§impl Send for HandleKind
§impl Sync for HandleKind
§impl Unpin for HandleKind
§impl UnwindSafe for HandleKind
Blanket Implementations§
Source§impl TypeInfo for HandleKind
Source§impl EncodeLike for HandleKind
Auto Trait Implementations§
§impl Freeze for HandleKind
§impl RefUnwindSafe for HandleKind
§impl Send for HandleKind
§impl Sync for HandleKind
§impl Unpin for HandleKind
§impl UnwindSafe for HandleKind
Blanket Implementations§
§impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.Source§impl<T> Borrow<T> for Twhere
diff --git a/pr-4404/src/pallet_gear_rpc/lib.rs.html b/pr-4404/src/pallet_gear_rpc/lib.rs.html
index 9008161ef08..2d5ad5c52f0 100644
--- a/pr-4404/src/pallet_gear_rpc/lib.rs.html
+++ b/pr-4404/src/pallet_gear_rpc/lib.rs.html
@@ -649,7 +649,7 @@
types::{ErrorObjectOwned, error::ErrorObject},
};
pub use pallet_gear_rpc_runtime_api::GearApi as GearRuntimeApi;
-use pallet_gear_rpc_runtime_api::{GasInfo, HandleKind, ReplyInfo};
+use pallet_gear_rpc_runtime_api::{GasInfo, HandleKind, ReplyInfo};
use sp_api::{ApiError, ApiExt, ApiRef, ProvideRuntimeApi};
use sp_blockchain::HeaderBackend;
use sp_core::{Bytes, H256};
@@ -817,7 +817,7 @@
&self,
at_hash: <Block as BlockT>::Hash,
source: H256,
- kind: HandleKind,
+ kind: HandleKind,
payload: Vec<u8>,
value: u128,
allow_other_panics: bool,
@@ -915,7 +915,7 @@
let GasInfo { min_limit, .. } = self.calculate_gas_info(
at_hash,
source,
- HandleKind::InitByHash(code_id.cast()),
+ HandleKind::InitByHash(code_id.cast()),
payload.to_vec(),
value,
allow_other_panics,
@@ -925,7 +925,7 @@
self.calculate_gas_info(
at_hash,
source,
- HandleKind::InitByHash(code_id.cast()),
+ HandleKind::InitByHash(code_id.cast()),
payload.to_vec(),
value,
allow_other_panics,
@@ -947,7 +947,7 @@
let GasInfo { min_limit, .. } = self.calculate_gas_info(
at_hash,
source,
- HandleKind::Init(code.to_vec()),
+ HandleKind::Init(code.to_vec()),
payload.to_vec(),
value,
allow_other_panics,
@@ -957,7 +957,7 @@
self.calculate_gas_info(
at_hash,
source,
- HandleKind::Init(code.to_vec()),
+ HandleKind::Init(code.to_vec()),
payload.to_vec(),
value,
allow_other_panics,
@@ -979,7 +979,7 @@
let GasInfo { min_limit, .. } = self.calculate_gas_info(
at_hash,
source,
- HandleKind::Handle(dest.cast()),
+ HandleKind::Handle(dest.cast()),
payload.to_vec(),
value,
allow_other_panics,
@@ -989,7 +989,7 @@
self.calculate_gas_info(
at_hash,
source,
- HandleKind::Handle(dest.cast()),
+ HandleKind::Handle(dest.cast()),
payload.to_vec(),
value,
allow_other_panics,
@@ -1011,7 +1011,7 @@
let GasInfo { min_limit, .. } = self.calculate_gas_info(
at_hash,
source,
- HandleKind::Reply(
+ HandleKind::Reply(
message_id.cast(),
ReplyCode::Success(SuccessReplyReason::Manual),
),
@@ -1024,7 +1024,7 @@
self.calculate_gas_info(
at_hash,
source,
- HandleKind::Reply(
+ HandleKind::Reply(
message_id.cast(),
ReplyCode::Success(SuccessReplyReason::Manual),
),