[][src]Trait frame_support::dispatch::Dispatchable

pub trait Dispatchable {
    type Origin;
    type Trait;
    fn dispatch(self, origin: Self::Origin) -> Result<(), DispatchError>;
}

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

...

Loading content...

Required methods

fn dispatch(self, origin: Self::Origin) -> Result<(), DispatchError>

Actually dispatch this call and result the result of it.

Loading content...

Implementors

Loading content...