Enum fennel_protocol_runtime::Call
source · [−]pub enum Call {
System(CallableCallFor<System, Runtime>),
Timestamp(CallableCallFor<Timestamp, Runtime>),
Grandpa(CallableCallFor<Grandpa, Runtime>),
Balances(CallableCallFor<Balances, Runtime>),
Sudo(CallableCallFor<Sudo, Runtime>),
TrustModule(CallableCallFor<TrustModule, Runtime>),
KeystoreModule(CallableCallFor<KeystoreModule, Runtime>),
SignalModule(CallableCallFor<SignalModule, Runtime>),
IdentityModule(CallableCallFor<IdentityModule, Runtime>),
}
Variants
System(CallableCallFor<System, Runtime>)
Timestamp(CallableCallFor<Timestamp, Runtime>)
Grandpa(CallableCallFor<Grandpa, Runtime>)
Balances(CallableCallFor<Balances, Runtime>)
Sudo(CallableCallFor<Sudo, Runtime>)
TrustModule(CallableCallFor<TrustModule, Runtime>)
KeystoreModule(CallableCallFor<KeystoreModule, Runtime>)
SignalModule(CallableCallFor<SignalModule, Runtime>)
IdentityModule(CallableCallFor<IdentityModule, 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<<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
Converts to this type from the input type.
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
Converts to this type from the input type.
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
Converts to this type from the input type.
sourceimpl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<Grandpa, Runtime>) -> Self
fn from(call: CallableCallFor<Grandpa, Runtime>) -> Self
Converts to this type from the input type.
sourceimpl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<Sudo, Runtime>) -> Self
fn from(call: CallableCallFor<Sudo, Runtime>) -> Self
Converts to this type from the input type.
sourceimpl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<TrustModule, Runtime>) -> Self
fn from(call: CallableCallFor<TrustModule, Runtime>) -> Self
Converts to this type from the input type.
sourceimpl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<KeystoreModule, Runtime>) -> Self
fn from(call: CallableCallFor<KeystoreModule, Runtime>) -> Self
Converts to this type from the input type.
sourceimpl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<SignalModule, Runtime>) -> Self
fn from(call: CallableCallFor<SignalModule, Runtime>) -> Self
Converts to this type from the input type.
sourceimpl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
impl From<<Pallet<Runtime> as Callable<Runtime>>::Call> for Call
sourcefn from(call: CallableCallFor<IdentityModule, Runtime>) -> Self
fn from(call: CallableCallFor<IdentityModule, Runtime>) -> Self
Converts to this type from the input type.
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<<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<Grandpa, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<Grandpa, 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<Sudo, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<Sudo, 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<TrustModule, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<TrustModule, 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<KeystoreModule, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<KeystoreModule, 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<SignalModule, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<SignalModule, 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<IdentityModule, Runtime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<IdentityModule, 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 · sourcefn borrow_mut(&mut self) -> &mut T
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,
sourcefn decode_all_with_depth_limit(limit: u32, input: &[u8]) -> Result<T, Error>
fn decode_all_with_depth_limit(limit: u32, input: &[u8]) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
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
. Read more
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn 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. Read more
sourcefn 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. Read more
sourceimpl<T> DowncastSync for T where
T: Any + Send + Sync,
impl<T> DowncastSync for T where
T: Any + Send + Sync,
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,
sourcefn equivalent(&self, key: &K) -> bool
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,
fn blake2_128(&self) -> [u8; 16]
fn blake2_256(&self) -> [u8; 32]
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,
fn twox_128(&self) -> [u8; 16]
fn twox_256(&self) -> [u8; 32]
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,
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>
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> Pointable for T
impl<T> Pointable for T
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<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.
sourcefn clone_into(&self, target: &mut T)
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>,
sourcefn unchecked_into(self) -> T
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>,
sourcefn unique_saturated_into(self) -> T
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