Enum pallet_message_queue::pallet::Event
source · pub enum Event<T: Config> {
ProcessingFailed {
id: H256,
origin: MessageOriginOf<T>,
error: ProcessMessageError,
},
Processed {
id: H256,
origin: MessageOriginOf<T>,
weight_used: Weight,
success: bool,
},
OverweightEnqueued {
id: [u8; 32],
origin: MessageOriginOf<T>,
page_index: u32,
message_index: T::Size,
},
PageReaped {
origin: MessageOriginOf<T>,
index: u32,
},
// some variants omitted
}
Expand description
The Event
enum of this pallet
Variants§
ProcessingFailed
Fields
id: H256
The blake2_256
hash of the message.
origin: MessageOriginOf<T>
The queue of the message.
error: ProcessMessageError
The error that occurred.
This error is pretty opaque. More fine-grained errors need to be emitted as events
by the MessageProcessor
.
Message discarded due to an error in the MessageProcessor
(usually a format error).
Processed
Fields
id: H256
The blake2_256
hash of the message.
origin: MessageOriginOf<T>
The queue of the message.
success: bool
Whether the message was processed.
Note that this does not mean that the underlying MessageProcessor
was internally
successful. It solely means that the MQ pallet will treat this as a success
condition and discard the message. Any internal error needs to be emitted as events
by the MessageProcessor
.
Message is processed.
OverweightEnqueued
Fields
origin: MessageOriginOf<T>
The queue of the message.
Message placed in overweight queue.
PageReaped
This page was reaped.
Trait Implementations§
source§impl<T: Config> Decode for Event<T>
impl<T: Config> Decode for Event<T>
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
source§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,
source§impl<T: Config> Encode for Event<T>
impl<T: Config> Encode for Event<T>
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl<T: Config> PartialEq for Event<T>
impl<T: Config> PartialEq for Event<T>
source§impl<T> TypeInfo for Event<T>where
MessageOriginOf<T>: TypeInfo + 'static,
T::Size: TypeInfo + 'static,
PhantomData<T>: TypeInfo + 'static,
T: Config + 'static,
impl<T> TypeInfo for Event<T>where
MessageOriginOf<T>: TypeInfo + 'static,
T::Size: TypeInfo + 'static,
PhantomData<T>: TypeInfo + 'static,
T: Config + 'static,
impl<T: Config> EncodeLike for Event<T>
impl<T: Config> Eq for Event<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Event<T>where
T: RefUnwindSafe,
<<T as Config>::MessageProcessor as ProcessMessage>::Origin: RefUnwindSafe,
<T as Config>::Size: RefUnwindSafe,
impl<T> Send for Event<T>
impl<T> Sync for Event<T>
impl<T> Unpin for Event<T>where
T: Unpin,
<<T as Config>::MessageProcessor as ProcessMessage>::Origin: Unpin,
<T as Config>::Size: Unpin,
impl<T> UnwindSafe for Event<T>where
T: UnwindSafe,
<<T as Config>::MessageProcessor as ProcessMessage>::Origin: UnwindSafe,
<T as Config>::Size: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.