pub trait ProviderLayer<P: Provider<N>, N: Network = Ethereum> {
type Provider: Provider<N>;
// Required method
fn layer(&self, inner: P) -> Self::Provider;
}
Expand description
A layering abstraction in the vein of tower::Layer
Required Associated Types§
Required Methods§
Implementors§
Source§impl<L, R, P, N> ProviderLayer<P, N> for JoinFill<L, R>
impl<L, R, P, N> ProviderLayer<P, N> for JoinFill<L, R>
type Provider = FillProvider<JoinFill<L, R>, P, N>
Source§impl<P> ProviderLayer<P> for AnvilLayerwhere
P: Provider,
Available on crate feature anvil-node
only.
impl<P> ProviderLayer<P> for AnvilLayerwhere
P: Provider,
Available on crate feature
anvil-node
only.type Provider = AnvilProvider<P>
Source§impl<P, N> ProviderLayer<P, N> for CacheLayer
Available on non-WebAssembly only.
impl<P, N> ProviderLayer<P, N> for CacheLayer
Available on non-WebAssembly only.
type Provider = CacheProvider<P, N>
Source§impl<P, N> ProviderLayer<P, N> for ChainLayer
impl<P, N> ProviderLayer<P, N> for ChainLayer
Source§impl<P, N> ProviderLayer<P, N> for MockLayer
Available on non-WebAssembly only.
impl<P, N> ProviderLayer<P, N> for MockLayer
Available on non-WebAssembly only.