Trait frame_support::weights::GetDispatchInfo [−][src]
pub trait GetDispatchInfo {
fn get_dispatch_info(&self) -> DispatchInfo;
}A Dispatchable function (aka transaction) that can carry some static information along with
it, using the #[weight] attribute.
Required methods
fn get_dispatch_info(&self) -> DispatchInfo[src]
Return a DispatchInfo, containing relevant information of this dispatch.
This is done independently of its encoded size.
Implementations on Foreign Types
impl<Address, Call, Signature, Extra> GetDispatchInfo for UncheckedExtrinsic<Address, Call, Signature, Extra> where
Call: GetDispatchInfo,
Extra: SignedExtension, [src]
impl<Address, Call, Signature, Extra> GetDispatchInfo for UncheckedExtrinsic<Address, Call, Signature, Extra> where
Call: GetDispatchInfo,
Extra: SignedExtension, [src]Implementation for unchecked extrinsic.
fn get_dispatch_info(&self) -> DispatchInfo[src]
impl<AccountId, Call, Extra> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extra> where
Call: GetDispatchInfo, [src]
impl<AccountId, Call, Extra> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extra> where
Call: GetDispatchInfo, [src]Implementation for checked extrinsic.
fn get_dispatch_info(&self) -> DispatchInfo[src]
impl<Call: Encode, Extra: Encode> GetDispatchInfo for TestXt<Call, Extra>[src]
impl<Call: Encode, Extra: Encode> GetDispatchInfo for TestXt<Call, Extra>[src]Implementation for test extrinsic.