pub enum RuntimeCall {
System(CallableCallFor<System, Runtime>),
Timestamp(CallableCallFor<Timestamp, Runtime>),
Balances(CallableCallFor<Balances, Runtime>),
Contracts(CallableCallFor<Contracts, Runtime>),
}
Expand description
The aggregated runtime call type.
Variantsยง
System(CallableCallFor<System, Runtime>)
Timestamp(CallableCallFor<Timestamp, Runtime>)
Balances(CallableCallFor<Balances, Runtime>)
Contracts(CallableCallFor<Contracts, Runtime>)
Trait Implementationsยง
Sourceยงimpl CheckIfFeeless for RuntimeCall
impl CheckIfFeeless for RuntimeCall
Sourceยงfn is_feeless(&self, origin: &Self::Origin) -> bool
fn is_feeless(&self, origin: &Self::Origin) -> bool
Checks if the dispatchable satisfies the feeless condition as defined by
#[pallet::feeless_if]
Sourceยงimpl Clone for RuntimeCall
impl Clone for RuntimeCall
Sourceยงfn clone(&self) -> RuntimeCall
fn clone(&self) -> RuntimeCall
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl Debug for RuntimeCall
impl Debug for RuntimeCall
Sourceยงimpl Decode for RuntimeCall
impl Decode for RuntimeCall
Sourceยงfn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Sourceยงfn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: 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
Sourceยงimpl Dispatchable for RuntimeCall
impl Dispatchable for RuntimeCall
Sourceยงtype RuntimeOrigin = RuntimeOrigin
type RuntimeOrigin = RuntimeOrigin
Every function call from your runtime has an origin, which specifies where the extrinsic was
generated from. In the case of a signed extrinsic (transaction), the origin contains an
identifier for the caller. The origin can be empty in the case of an inherent extrinsic.
Sourceยงtype Config = RuntimeCall
type Config = RuntimeCall
โฆ
Sourceยงtype Info = DispatchInfo
type Info = DispatchInfo
An opaque set of information attached to the transaction. This could be constructed anywhere
down the line in a runtime. The current Substrate runtime uses a struct with the same name
to represent the dispatch class and weight.
Sourceยงtype PostInfo = PostDispatchInfo
type PostInfo = PostDispatchInfo
Additional information that is returned by
dispatch
. Can be used to supply the caller
with information about a Dispatchable
that is only known post dispatch.Sourceยงfn dispatch(self, origin: RuntimeOrigin) -> DispatchResultWithPostInfo
fn dispatch(self, origin: RuntimeOrigin) -> DispatchResultWithPostInfo
Actually dispatch this call and return the result of it.
Sourceยงimpl Encode for RuntimeCall
impl Encode for RuntimeCall
Sourceยงfn size_hint(&self) -> usize
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>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Sourceยงfn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Sourceยงfn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Sourceยงimpl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
Sourceยงimpl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
Sourceยงimpl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
Sourceยงimpl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
Sourceยงimpl GetCallMetadata for RuntimeCall
impl GetCallMetadata for RuntimeCall
Sourceยงfn get_call_metadata(&self) -> CallMetadata
fn get_call_metadata(&self) -> CallMetadata
Return a
CallMetadata
, containing function and pallet name of the Call.Sourceยงfn get_module_names() -> &'static [&'static str]
fn get_module_names() -> &'static [&'static str]
Return all module names.
Sourceยงfn get_call_names(module: &str) -> &'static [&'static str]
fn get_call_names(module: &str) -> &'static [&'static str]
Return all function names for the given
module
.Sourceยงimpl GetDispatchInfo for RuntimeCall
impl GetDispatchInfo for RuntimeCall
Sourceยงfn get_dispatch_info(&self) -> DispatchInfo
fn get_dispatch_info(&self) -> DispatchInfo
Return a
DispatchInfo
, containing relevant information of this dispatch. Read moreSourceยงimpl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
Sourceยงfn is_sub_type(&self) -> Option<&CallableCallFor<System, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<System, Runtime>>
Returns
Some(_)
if self
is an instance of sub type T
.Sourceยงimpl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
Sourceยงfn is_sub_type(&self) -> Option<&CallableCallFor<Timestamp, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<Timestamp, Runtime>>
Returns
Some(_)
if self
is an instance of sub type T
.Sourceยงimpl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
Sourceยงfn is_sub_type(&self) -> Option<&CallableCallFor<Balances, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<Balances, Runtime>>
Returns
Some(_)
if self
is an instance of sub type T
.Sourceยงimpl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
Sourceยงfn is_sub_type(&self) -> Option<&CallableCallFor<Contracts, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<Contracts, Runtime>>
Returns
Some(_)
if self
is an instance of sub type T
.Sourceยงimpl PartialEq for RuntimeCall
impl PartialEq for RuntimeCall
Sourceยงimpl TypeInfo for RuntimeCall
impl TypeInfo for RuntimeCall
Sourceยงimpl UnfilteredDispatchable for RuntimeCall
impl UnfilteredDispatchable for RuntimeCall
Sourceยงtype RuntimeOrigin = RuntimeOrigin
type RuntimeOrigin = RuntimeOrigin
The origin type of the runtime, (i.e.
frame_system::Config::RuntimeOrigin
).Sourceยงfn dispatch_bypass_filter(
self,
origin: RuntimeOrigin,
) -> DispatchResultWithPostInfo
fn dispatch_bypass_filter( self, origin: RuntimeOrigin, ) -> DispatchResultWithPostInfo
Dispatch this call but do not check the filter in origin.
impl EncodeLike for RuntimeCall
impl Eq for RuntimeCall
impl StructuralPartialEq for RuntimeCall
Auto Trait Implementationsยง
impl Freeze for RuntimeCall
impl RefUnwindSafe for RuntimeCall
impl Send for RuntimeCall
impl Sync for RuntimeCall
impl Unpin for RuntimeCall
impl UnwindSafe for RuntimeCall
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<Call> CallDispatcher<Call> for Callwhere
Call: Dispatchable,
impl<Call> CallDispatcher<Call> for Callwhere
Call: Dispatchable,
fn dispatch( call: Call, origin: <Call as Dispatchable>::RuntimeOrigin, ) -> Result<<Call as Dispatchable>::PostInfo, DispatchErrorWithPostInfo<<Call as Dispatchable>::PostInfo>>
Sourceยงimpl<T> CheckedConversion for T
impl<T> CheckedConversion for T
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
Sourceยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Sourceยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Sourceยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Sourceยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
โs vtable from &Trait
โs.Sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
โs vtable from &mut Trait
โs.Sourceยงimpl<T> DowncastSync for T
impl<T> DowncastSync for T
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Sourceยงimpl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Sourceยงfn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงimpl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Sourceยงimpl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Sourceยงfn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more
Sourceยงimpl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
Sourceยงfn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
Sourceยงfn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moreSourceยงimpl<P> Storable for Pwhere
P: Codec,
impl<P> Storable for Pwhere
P: Codec,
Sourceยงfn decode<I>(input: &mut I) -> Result<P, Error>where
I: Input,
fn decode<I>(input: &mut I) -> Result<P, Error>where
I: Input,
Attempt to deserialize the value from input.
Sourceยงfn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
The exact number of bytes this type consumes in the encoded form.
Sourceยงimpl<P, Key> StorableHint<Key> for Pwhere
P: Packed,
Key: StorageKey,
impl<P, Key> StorableHint<Key> for Pwhere
P: Packed,
Key: StorageKey,
Sourceยงimpl<P> StorageKey for Pwhere
P: Packed,
impl<P> StorageKey for Pwhere
P: Packed,
Sourceยงimpl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
Sourceยงimpl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Sourceยงfn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.Sourceยงimpl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Sourceยงfn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.