reth_storage_api

Trait HashedPostStateProvider

Source
pub trait HashedPostStateProvider: Send + Sync {
    // Required method
    fn hashed_post_state(&self, bundle_state: &BundleState) -> HashedPostState;
}
Expand description

Trait that provides the hashed state from various sources.

Required Methods§

Source

fn hashed_post_state(&self, bundle_state: &BundleState) -> HashedPostState

Returns the HashedPostState of the provided [BundleState].

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + HashedPostStateProvider + ?Sized> HashedPostStateProvider for &'a T
where &'a T: Send + Sync,

Source§

fn hashed_post_state(&self, bundle_state: &BundleState) -> HashedPostState

Source§

impl<T: HashedPostStateProvider + ?Sized> HashedPostStateProvider for Box<T>
where Box<T>: Send + Sync,

Source§

fn hashed_post_state(&self, bundle_state: &BundleState) -> HashedPostState

Source§

impl<T: HashedPostStateProvider + ?Sized> HashedPostStateProvider for Arc<T>
where Arc<T>: Send + Sync,

Source§

fn hashed_post_state(&self, bundle_state: &BundleState) -> HashedPostState

Implementors§

Source§

impl<C: Send + Sync, N: NodePrimitives> HashedPostStateProvider for NoopProvider<C, N>