referrerpolicy=no-referrer-when-downgrade
pallet_bridge_grandpa

Type Alias BridgedStoredHeaderData

Source
pub type BridgedStoredHeaderData<T, I> = StoredHeaderData<BridgedBlockNumber<T, I>, BridgedBlockHash<T, I>>;
Expand description

Header data of the bridged chain that is stored at this chain by this pallet.

Aliased Type§

struct BridgedStoredHeaderData<T, I> {
    pub number: <<T as Config<I>>::BridgedChain as Chain>::BlockNumber,
    pub state_root: <<T as Config<I>>::BridgedChain as Chain>::Hash,
}

Fields§

§number: <<T as Config<I>>::BridgedChain as Chain>::BlockNumber

Header number.

§state_root: <<T as Config<I>>::BridgedChain as Chain>::Hash

Header state root.

Trait Implementations

§

impl<Number, Hash> Clone for StoredHeaderData<Number, Hash>
where Number: Clone, Hash: Clone,

§

fn clone(&self) -> StoredHeaderData<Number, Hash>

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
§

impl<Number, Hash> Debug for StoredHeaderData<Number, Hash>
where Number: Debug, Hash: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl<Number, Hash> Decode for StoredHeaderData<Number, Hash>
where Number: Decode, Hash: Decode,

§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<StoredHeaderData<Number, Hash>, 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,

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
§

impl<Number, Hash> Encode for StoredHeaderData<Number, Hash>
where Number: Encode, Hash: Encode,

§

fn size_hint(&self) -> usize

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

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

impl<Number, Hash> MaxEncodedLen for StoredHeaderData<Number, Hash>
where Number: MaxEncodedLen, Hash: MaxEncodedLen,

§

fn max_encoded_len() -> usize

Upper bound, in bytes, of the maximum encoded size of this item.
§

impl<Number, Hash> PartialEq for StoredHeaderData<Number, Hash>
where Number: PartialEq, Hash: PartialEq,

§

fn eq(&self, other: &StoredHeaderData<Number, Hash>) -> 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.
§

impl<Number, Hash> TypeInfo for StoredHeaderData<Number, Hash>
where Number: TypeInfo + 'static, Hash: TypeInfo + 'static,

§

type Identity = StoredHeaderData<Number, Hash>

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

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl<Number, Hash> EncodeLike for StoredHeaderData<Number, Hash>
where Number: Encode, Hash: Encode,

§

impl<Number, Hash> Eq for StoredHeaderData<Number, Hash>
where Number: Eq, Hash: Eq,

§

impl<Number, Hash> StructuralPartialEq for StoredHeaderData<Number, Hash>