[−][src]Trait frame_support::dispatch::Dispatchable
A lazy call (module function and argument values) that can be executed via its dispatch
method.
Associated Types
type 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.
type Trait
...
type Info
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.
type PostInfo: Printable + Clone + PartialEq<Self::PostInfo> + Eq + Copy + Encode + Decode
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.
Required methods
fn dispatch(
self,
origin: Self::Origin
) -> Result<Self::PostInfo, DispatchErrorWithPostInfo<Self::PostInfo>>
self,
origin: Self::Origin
) -> Result<Self::PostInfo, DispatchErrorWithPostInfo<Self::PostInfo>>
Actually dispatch this call and return the result of it.
Implementations on Foreign Types
impl Dispatchable for ()
[src]
type Origin = ()
type Trait = ()
type Info = ()
type PostInfo = ()
fn dispatch(
self,
_origin: <() as Dispatchable>::Origin
) -> Result<<() as Dispatchable>::PostInfo, DispatchErrorWithPostInfo<<() as Dispatchable>::PostInfo>>
[src]
self,
_origin: <() as Dispatchable>::Origin
) -> Result<<() as Dispatchable>::PostInfo, DispatchErrorWithPostInfo<<() as Dispatchable>::PostInfo>>