Enum anagolay_runtime::Call
source · [−]pub enum Call {
System(CallableCallFor<System, Runtime>),
RandomnessCollectiveFlip(CallableCallFor<RandomnessCollectiveFlip, Runtime>),
Timestamp(CallableCallFor<Timestamp, Runtime>),
Grandpa(CallableCallFor<Grandpa, Runtime>),
Balances(CallableCallFor<Balances, Runtime>),
Sudo(CallableCallFor<Sudo, Runtime>),
Utility(CallableCallFor<Utility, Runtime>),
Operations(CallableCallFor<Operations, Runtime>),
Workflows(CallableCallFor<Workflows, Runtime>),
}
Variants
System(CallableCallFor<System, Runtime>)
RandomnessCollectiveFlip(CallableCallFor<RandomnessCollectiveFlip, Runtime>)
Timestamp(CallableCallFor<Timestamp, Runtime>)
Grandpa(CallableCallFor<Grandpa, Runtime>)
Balances(CallableCallFor<Balances, Runtime>)
Sudo(CallableCallFor<Sudo, Runtime>)
Utility(CallableCallFor<Utility, Runtime>)
Operations(CallableCallFor<Operations, Runtime>)
Workflows(CallableCallFor<Workflows, Runtime>)
Trait Implementations
sourceimpl Decode for Call
impl Decode for Call
sourcefn 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.
sourcefn skip<I>(input: &mut I) -> Result<(), Error> where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error> where
I: Input,
Attempt to skip the encoded value from input. Read more
sourcefn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
sourceimpl Dispatchable for Call
impl Dispatchable for Call
type Origin = Origin
type Origin = Origin
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. Read more
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. Read more
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 ownly known post dispatch. Read more
sourcefn dispatch(self, origin: Origin) -> DispatchResultWithPostInfo
fn dispatch(self, origin: Origin) -> DispatchResultWithPostInfo
Actually dispatch this call and return the result of it.
sourceimpl Encode for Call
impl Encode for Call
sourcefn 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.
sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
sourcefn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Convert self to an owned vector.
sourcefn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
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.
sourcefn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
sourceimpl From<<Module<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Module<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<RandomnessCollectiveFlip, Runtime>) -> Self
fn from(call: CallableCallFor<RandomnessCollectiveFlip, Runtime>) -> Self
Performs the conversion.
sourceimpl From<<Module<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Module<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<Grandpa, Runtime>) -> Self
fn from(call: CallableCallFor<Grandpa, Runtime>) -> Self
Performs the conversion.
sourceimpl From<<Module<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Module<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<Sudo, Runtime>) -> Self
fn from(call: CallableCallFor<Sudo, Runtime>) -> Self
Performs the conversion.
sourceimpl From<<Module<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Module<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<Utility, Runtime>) -> Self
fn from(call: CallableCallFor<Utility, Runtime>) -> Self
Performs the conversion.
sourceimpl From<<Pallet<Runtime, ()> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime, ()> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<Balances, Runtime>) -> Self
fn from(call: CallableCallFor<Balances, Runtime>) -> Self
Performs the conversion.
sourceimpl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<System, Runtime>) -> Self
fn from(call: CallableCallFor<System, Runtime>) -> Self
Performs the conversion.
sourceimpl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<Timestamp, Runtime>) -> Self
fn from(call: CallableCallFor<Timestamp, Runtime>) -> Self
Performs the conversion.
sourceimpl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<Operations, Runtime>) -> Self
fn from(call: CallableCallFor<Operations, Runtime>) -> Self
Performs the conversion.
sourceimpl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<Workflows, Runtime>) -> Self
fn from(call: CallableCallFor<Workflows, Runtime>) -> Self
Performs the conversion.
sourceimpl GetCallMetadata for Call
impl GetCallMetadata for Call
sourcefn get_call_metadata(&self) -> CallMetadata
fn get_call_metadata(&self) -> CallMetadata
Return a CallMetadata
, containing function and pallet name of the Call.
sourcefn get_module_names() -> &'static [&'static str]
fn get_module_names() -> &'static [&'static str]
Return all module names.
sourcefn 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
.
sourceimpl GetDispatchInfo for Call
impl GetDispatchInfo for Call
sourcefn get_dispatch_info(&self) -> DispatchInfo
fn get_dispatch_info(&self) -> DispatchInfo
Return a DispatchInfo
, containing relevant information of this dispatch. Read more
sourceimpl IsSubType<<Module<Runtime> as Callable<Runtime>>::Call> for Call
impl IsSubType<<Module<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn is_sub_type(
&self
) -> Option<&CallableCallFor<RandomnessCollectiveFlip, Runtime>>
fn is_sub_type(
&self
) -> Option<&CallableCallFor<RandomnessCollectiveFlip, Runtime>>
Returns Some(_)
if self
is an instance of sub type T
.
sourceimpl IsSubType<<Module<Runtime> as Callable<Runtime>>::Call> for Call
impl IsSubType<<Module<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn is_sub_type(&self) -> Option<&CallableCallFor<Grandpa, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<Grandpa, Runtime>>
Returns Some(_)
if self
is an instance of sub type T
.
sourceimpl IsSubType<<Module<Runtime> as Callable<Runtime>>::Call> for Call
impl IsSubType<<Module<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn is_sub_type(&self) -> Option<&CallableCallFor<Sudo, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<Sudo, Runtime>>
Returns Some(_)
if self
is an instance of sub type T
.
sourceimpl IsSubType<<Module<Runtime> as Callable<Runtime>>::Call> for Call
impl IsSubType<<Module<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn is_sub_type(&self) -> Option<&CallableCallFor<Utility, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<Utility, Runtime>>
Returns Some(_)
if self
is an instance of sub type T
.
sourceimpl IsSubType<<Pallet<Runtime, ()> as Callable<Runtime>>::Call> for Call
impl IsSubType<<Pallet<Runtime, ()> as Callable<Runtime>>::Call> for Call
sourcefn 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
.
sourceimpl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn 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
.
sourceimpl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn 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
.
sourceimpl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn is_sub_type(&self) -> Option<&CallableCallFor<Operations, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<Operations, Runtime>>
Returns Some(_)
if self
is an instance of sub type T
.
sourceimpl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn is_sub_type(&self) -> Option<&CallableCallFor<Workflows, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<Workflows, Runtime>>
Returns Some(_)
if self
is an instance of sub type T
.
sourceimpl UnfilteredDispatchable for Call
impl UnfilteredDispatchable for Call
sourcefn dispatch_bypass_filter(self, origin: Origin) -> DispatchResultWithPostInfo
fn dispatch_bypass_filter(self, origin: Origin) -> DispatchResultWithPostInfo
Dispatch this call but do not check the filter in origin.
impl EncodeLike<Call> for Call
impl Eq for Call
impl StructuralEq for Call
impl StructuralPartialEq for Call
Auto Trait Implementations
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnwindSafe for Call
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedConversion for T
impl<T> CheckedConversion for T
sourcefn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
Convert from a value of T
into an equivalent instance of Option<Self>
. Read more
sourcefn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
Consume self to return Some
equivalent value of Option<T>
. Read more
sourceimpl<T> DecodeLimit for T where
T: Decode,
impl<T> DecodeLimit for T where
T: Decode,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Hashable for T where
T: Codec,
impl<T> Hashable for T where
T: Codec,
pub fn blake2_128(&self) -> [u8; 16]
pub fn blake2_256(&self) -> [u8; 32]
pub fn blake2_128_concat(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn twox_128(&self) -> [u8; 16]
pub fn twox_256(&self) -> [u8; 32]
pub fn twox_64_concat(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn identity(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
sourceimpl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
sourcefn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Convert from a value of T
into an equivalent instance of Self
. Read more
sourcefn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
sourceimpl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
sourcepub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourcepub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
sourcepub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
sourcepub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcepub fn unchecked_into(self) -> T
pub fn unchecked_into(self) -> T
The counterpart to unchecked_from
.
sourceimpl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
sourcepub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more