Trait frame_support::dispatch::GetDispatchInfo
source · pub trait GetDispatchInfo {
// Required method
fn get_dispatch_info(&self) -> DispatchInfo;
}
Expand description
A Dispatchable
function (aka transaction) that can carry some static information along with
it, using the #[pallet::weight]
attribute.
Required Methods§
sourcefn get_dispatch_info(&self) -> DispatchInfo
fn get_dispatch_info(&self) -> DispatchInfo
Return a DispatchInfo
, containing relevant information of this dispatch.
This is done independently of its encoded size.
Implementations on Foreign Types§
source§impl GetDispatchInfo for ()
impl GetDispatchInfo for ()
fn get_dispatch_info(&self) -> DispatchInfo
source§impl<AccountId, Call, Extension: TransactionExtension<Call>> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extension>where
Call: GetDispatchInfo + Dispatchable,
impl<AccountId, Call, Extension: TransactionExtension<Call>> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extension>where
Call: GetDispatchInfo + Dispatchable,
Implementation for checked extrinsic.
fn get_dispatch_info(&self) -> DispatchInfo
source§impl<Address, Call, Signature, Extension: TransactionExtension<Call>> GetDispatchInfo for UncheckedExtrinsic<Address, Call, Signature, Extension>where
Call: GetDispatchInfo + Dispatchable,
impl<Address, Call, Signature, Extension: TransactionExtension<Call>> GetDispatchInfo for UncheckedExtrinsic<Address, Call, Signature, Extension>where
Call: GetDispatchInfo + Dispatchable,
Implementation for unchecked extrinsic.