Trait frame_support::weights::GetDispatchInfo
source · pub trait GetDispatchInfo {
fn get_dispatch_info(&self) -> DispatchInfo;
}
Expand description
A Dispatchable
function (aka transaction) that can carry some static information along with
it, using the #[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<Address, Call, Signature, Extra> GetDispatchInfo for UncheckedExtrinsic<Address, Call, Signature, Extra>where
Call: GetDispatchInfo,
Extra: SignedExtension,
impl<Address, Call, Signature, Extra> GetDispatchInfo for UncheckedExtrinsic<Address, Call, Signature, Extra>where
Call: GetDispatchInfo,
Extra: SignedExtension,
Implementation for unchecked extrinsic.
fn get_dispatch_info(&self) -> DispatchInfo
source§impl<AccountId, Call, Extra> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extra>where
Call: GetDispatchInfo,
impl<AccountId, Call, Extra> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extra>where
Call: GetDispatchInfo,
Implementation for checked extrinsic.
fn get_dispatch_info(&self) -> DispatchInfo
source§impl<Call: Encode, Extra: Encode> GetDispatchInfo for TestXt<Call, Extra>
impl<Call: Encode, Extra: Encode> GetDispatchInfo for TestXt<Call, Extra>
Implementation for test extrinsic.