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>
impl<Info> Clone for DispatchErrorWithPostInfo<Info>
Source§fn clone(&self) -> DispatchErrorWithPostInfo<Info>
fn clone(&self) -> DispatchErrorWithPostInfo<Info>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Info> Debug for DispatchErrorWithPostInfo<Info>
impl<Info> Debug for DispatchErrorWithPostInfo<Info>
Source§impl<Info> Decode for DispatchErrorWithPostInfo<Info>
impl<Info> Decode for DispatchErrorWithPostInfo<Info>
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<DispatchErrorWithPostInfo<Info>, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<DispatchErrorWithPostInfo<Info>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: 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,
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>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Source§impl<Info> Encode for DispatchErrorWithPostInfo<Info>
impl<Info> Encode for DispatchErrorWithPostInfo<Info>
Source§fn size_hint(&self) -> usize
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,
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.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl<T, E> From<E> for DispatchErrorWithPostInfo<T>
impl<T, E> From<E> for DispatchErrorWithPostInfo<T>
Source§fn from(error: E) -> DispatchErrorWithPostInfo<T>
fn from(error: E) -> DispatchErrorWithPostInfo<T>
Converts to this type from the input type.
Source§impl<Info> PartialEq for DispatchErrorWithPostInfo<Info>
impl<Info> PartialEq for DispatchErrorWithPostInfo<Info>
Source§fn eq(&self, other: &DispatchErrorWithPostInfo<Info>) -> bool
fn eq(&self, other: &DispatchErrorWithPostInfo<Info>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.