referrerpolicy=no-referrer-when-downgrade
pallet_meta_tx

Type Alias MetaTxFor

Source
pub type MetaTxFor<T> = MetaTx<<T as Config>::RuntimeCall, <T as Config>::Extension>;
Expand description

The MetaTx for the given config.

Aliased Type§

struct MetaTxFor<T> { /* private fields */ }

Implementations

Source§

impl<Call, Extension> MetaTx<Call, Extension>

Source

pub fn new( call: Call, extension_version: ExtensionVersion, extension: Extension, ) -> Self

Create a new meta transaction.

Trait Implementations

Source§

impl<Call: Clone, Extension: Clone> Clone for MetaTx<Call, Extension>

Source§

fn clone(&self) -> MetaTx<Call, Extension>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Call, Extension> Debug for MetaTx<Call, Extension>
where Call: Debug, Extension: Debug,

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Call, Extension> Decode for MetaTx<Call, Extension>
where Call: Decode, Extension: Decode,

Source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>

Attempt to deserialise the value from input.
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
Source§

impl<Call, Extension> Encode for MetaTx<Call, Extension>
where Call: Encode, Extension: Encode,

Source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
Source§

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
Source§

impl<Call: PartialEq, Extension: PartialEq> PartialEq for MetaTx<Call, Extension>

Source§

fn eq(&self, other: &MetaTx<Call, Extension>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Call, Extension> TypeInfo for MetaTx<Call, Extension>
where Call: TypeInfo + 'static, Extension: TypeInfo + 'static,

Source§

type Identity = MetaTx<Call, Extension>

The type identifying for which type info is provided. Read more
Source§

fn type_info() -> Type

Returns the static type identifier for Self.
Source§

impl<Call, Extension> DecodeWithMemTracking for MetaTx<Call, Extension>
where Call: DecodeWithMemTracking, Extension: DecodeWithMemTracking,

Source§

impl<Call, Extension> EncodeLike for MetaTx<Call, Extension>
where Call: Encode, Extension: Encode,

Source§

impl<Call: Eq, Extension: Eq> Eq for MetaTx<Call, Extension>

Source§

impl<Call, Extension> StructuralPartialEq for MetaTx<Call, Extension>