Skip to main content

WaitForCaches

Trait WaitForCaches 

Source
pub trait WaitForCaches {
    // Required method
    fn wait_for_caches(&self) -> CacheWaitDurations;
}
Expand description

Trait for types that can wait for caches to become available.

Used by reth_newPayload to wait for cache updates before starting payload processing. Removed execution-cache allocations may still be destroyed concurrently after unlocking.

Required Methods§

Source

fn wait_for_caches(&self) -> CacheWaitDurations

Waits for cache updates to complete.

Returns the time spent waiting for each cache separately.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<P, Evm, V> WaitForCaches for BasicEngineValidator<P, Evm, V>
where Evm: ConfigureEvm,