Module frame_support::dispatch
source · [−]Expand description
Dispatch system. Contains a macro for defining runtime modules and generating values representing lazy module function calls.
Re-exports
pub use crate::weights::ClassifyDispatch;
pub use crate::weights::DispatchInfo;
pub use crate::weights::GetDispatchInfo;
pub use crate::weights::PaysFee;
pub use crate::weights::PostDispatchInfo;
pub use crate::weights::WeighData;
pub use crate::weights::Weight;
pub use crate::weights::WithPostDispatchInfo;
Modules
Utilities for formatting and printing String
s.
Primitive traits and types representing basic properties of types.
Error handling with the Result
type.
Macros
Derive macro generating an impl of the trait Clone
.
Derive macro generating an impl of the trait Eq
.
Derive macro generating an impl of the trait PartialEq
.
Structs
The function and pallet name of the Call.
A contiguous growable array type, written as Vec<T>
, short for ‘vector’.
Enums
Reason why a dispatch call failed.
Traits
Serializable version of pallet dispatchable.
A common trait for the ability to explicitly duplicate an object.
Trait that allows zero-copy read/write of value-references to/from slices in LE format.
Trait that allows zero-copy read of value-references from slices in LE format.
A lazy call (module function and argument values) that can be executed via its dispatch
method.
Trait that allows zero-copy write of value-references to slices in LE format.
Something that can be encoded as a reference.
A marker trait that tells the compiler that a type encode to the same representation as another type.
Trait for equality comparisons which are equivalence relations.
Gets the metadata for the Call - function name and pallet name.
Gets the function name of the Call.
Provides information about the storage version of a pallet.
Trait that tells you if a given type can be encoded/decoded in a compact way.
Trait that allows reading of data into a slice.
Trait that allows writing of data.
A type that can be used as a parameter in a dispatchable function.
Trait for equality comparisons which are partial equivalence relations.
Type that can be dispatched with an origin but without checking the origin filter.
Type Definitions
The error type contained in a DispatchResultWithPostInfo
.
Unaugmented version of DispatchResultWithPostInfo
that can be returned from
dispatchable functions and is automatically converted to the augmented type. Should be
used whenever the PostDispatchInfo
does not need to be overwritten. As this should
be the common case it is the implicit return type when none is specified.
The return type of a Dispatchable
in frame. When returned explicitly from
a dispatchable function it allows overriding the default PostDispatchInfo
returned from a dispatch.
Priority for a transaction. Additive. Higher is better.