Type Alias frame_support::dispatch::DispatchErrorWithPostInfo

source ·
pub type DispatchErrorWithPostInfo = DispatchErrorWithPostInfo<PostDispatchInfo>;
Expand description

The error type contained in a DispatchResultWithPostInfo.

Aliased Type§

struct DispatchErrorWithPostInfo {
    pub post_info: PostDispatchInfo,
    pub error: DispatchError,
}

Fields§

§post_info: PostDispatchInfo

Additional information about the Dispatchable which is only known post dispatch.

§error: DispatchError

The actual DispatchResult indicating whether the dispatch was successful.

Trait Implementations

source§

impl<Info> Clone for DispatchErrorWithPostInfo<Info>
where Info: Clone + Eq + PartialEq + Copy + Encode + Decode + Printable,

source§

fn clone(&self) -> DispatchErrorWithPostInfo<Info>

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<Info> Debug for DispatchErrorWithPostInfo<Info>
where Info: Eq + PartialEq + Clone + Copy + Encode + Decode + Printable + Debug,

source§

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

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

impl<Info> Decode for DispatchErrorWithPostInfo<Info>
where Info: Eq + PartialEq + Clone + Copy + Encode + Decode + Printable,

source§

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

Attempt to deserialise the value from input.
source§

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
source§

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

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

fn encoded_fixed_size() -> Option<usize>

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

impl<Info> Encode for DispatchErrorWithPostInfo<Info>
where Info: Eq + PartialEq + Clone + Copy + Encode + Decode + Printable,

source§

fn size_hint(&self) -> usize

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

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

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

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

Convert self to an owned vector.
source§

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.
source§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl<T, E> From<E> for DispatchErrorWithPostInfo<T>

source§

fn from(error: E) -> DispatchErrorWithPostInfo<T>

Converts to this type from the input type.
source§

impl<Info> PartialEq for DispatchErrorWithPostInfo<Info>
where Info: PartialEq + Eq + Clone + Copy + Encode + Decode + Printable,

source§

fn eq(&self, other: &DispatchErrorWithPostInfo<Info>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> Printable for DispatchErrorWithPostInfo<T>
where T: Eq + PartialEq + Clone + Copy + Encode + Decode + Printable,

source§

fn print(&self)

Print the object.
source§

impl<Info> TypeInfo for DispatchErrorWithPostInfo<Info>
where Info: Eq + PartialEq + Clone + Copy + Encode + Decode + Printable + TypeInfo + 'static,

§

type Identity = DispatchErrorWithPostInfo<Info>

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<Info> Copy for DispatchErrorWithPostInfo<Info>
where Info: Copy + Eq + PartialEq + Clone + Encode + Decode + Printable,

source§

impl<Info> EncodeLike for DispatchErrorWithPostInfo<Info>
where Info: Eq + PartialEq + Clone + Copy + Encode + Decode + Printable,

source§

impl<Info> Eq for DispatchErrorWithPostInfo<Info>
where Info: Eq + PartialEq + Clone + Copy + Encode + Decode + Printable,

source§

impl<Info> StructuralPartialEq for DispatchErrorWithPostInfo<Info>
where Info: Eq + PartialEq + Clone + Copy + Encode + Decode + Printable,