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