pub struct EventRecordFoo<E, H> {
pub phase: Phase,
pub event: E,
pub topics: Vec<H>,
}
Fields§
§phase: Phase
The phase of the block it happened in.
event: E
The event itself.
topics: Vec<H>
The list of the topics this event has.
Trait Implementations§
source§impl<E, H> Decode for EventRecordFoo<E, H>where
E: Decode,
Vec<H>: Decode,
impl<E, H> Decode for EventRecordFoo<E, H>where
E: Decode,
Vec<H>: Decode,
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>
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<E, H> Encode for EventRecordFoo<E, H>where
E: Encode,
Vec<H>: Encode,
impl<E, H> Encode for EventRecordFoo<E, H>where
E: Encode,
Vec<H>: Encode,
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: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
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<E, H> TypeInfo for EventRecordFoo<E, H>where
E: TypeInfo + 'static,
Vec<H>: TypeInfo + 'static,
H: TypeInfo + 'static,
impl<E, H> TypeInfo for EventRecordFoo<E, H>where
E: TypeInfo + 'static,
Vec<H>: TypeInfo + 'static,
H: TypeInfo + 'static,
impl<E, H> EncodeLike for EventRecordFoo<E, H>where
E: Encode,
Vec<H>: Encode,
Auto Trait Implementations§
impl<E, H> Freeze for EventRecordFoo<E, H>where
E: Freeze,
impl<E, H> RefUnwindSafe for EventRecordFoo<E, H>where
E: RefUnwindSafe,
H: RefUnwindSafe,
impl<E, H> Send for EventRecordFoo<E, H>
impl<E, H> Sync for EventRecordFoo<E, H>
impl<E, H> Unpin for EventRecordFoo<E, H>
impl<E, H> UnwindSafe for EventRecordFoo<E, H>where
E: UnwindSafe,
H: 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
Mutably borrows from an owned value. Read more
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere
T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
Return an encoding of
Self
prepended by given slice.