referrerpolicy=no-referrer-when-downgrade
snowbridge_pallet_ethereum_client::types

Type Alias FinalizedBeaconStateBuffer

Source
pub type FinalizedBeaconStateBuffer<T> = RingBufferMapImpl<u32, MaxFinalizedHeadersToKeep<T>, FinalizedBeaconStateIndex<T>, FinalizedBeaconStateMapping<T>, FinalizedBeaconState<T>, OptionQuery>;
Expand description

FinalizedState ring buffer implementation

Aliased Type§

struct FinalizedBeaconStateBuffer<T>(/* private fields */);

Trait Implementations

§

impl<Key, Value, Index, B, CurrentIndex, Intermediate, M, QueryKind> RingBufferMap<Key, Value, QueryKind> for RingBufferMapImpl<Index, B, CurrentIndex, Intermediate, M, QueryKind>
where Key: FullCodec + Clone, Value: FullCodec, Index: Ord + One + Zero<Output = Index> + Add + Copy + FullCodec + Eq, B: Get<Index>, CurrentIndex: StorageValue<Index, Query = Index>, Intermediate: StorageMap<Index, Key, Query = Key>, M: StorageMap<Key, Value, Query = <QueryKind as QueryKindTrait<Value, GetDefault>>::Query>, QueryKind: QueryKindTrait<Value, GetDefault>,

Ringbuffer implementation based on RingBufferTransient

§

fn insert(k: Key, v: Value)

Insert a map entry.

§

fn contains_key(k: Key) -> bool

Check if map contains a key

§

fn get(k: Key) -> <M as StorageMap<Key, Value>>::Query

Get the value associated with key