Trait GetDispatchInfo
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§
fn 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§
§impl GetDispatchInfo for ()
impl GetDispatchInfo for ()
fn get_dispatch_info(&self) -> DispatchInfo
§impl<AccountId, Call, Extension> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extension>where
Call: Dispatchable + GetDispatchInfo,
Extension: TransactionExtension<Call>,
impl<AccountId, Call, Extension> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extension>where
Call: Dispatchable + GetDispatchInfo,
Extension: TransactionExtension<Call>,
Implementation for checked extrinsic.
fn get_dispatch_info(&self) -> DispatchInfo
§impl<Address, Call, Signature, Extension> GetDispatchInfo for UncheckedExtrinsic<Address, Call, Signature, Extension>where
Call: Dispatchable + GetDispatchInfo,
Extension: TransactionExtension<Call>,
impl<Address, Call, Signature, Extension> GetDispatchInfo for UncheckedExtrinsic<Address, Call, Signature, Extension>where
Call: Dispatchable + GetDispatchInfo,
Extension: TransactionExtension<Call>,
Implementation for unchecked extrinsic.