reth_provider/traits/
static_file_provider.rs

1
2
3
4
5
6
7
8
9
10
11
12
use reth_node_types::NodePrimitives;

use crate::providers::StaticFileProvider;

/// Static file provider factory.
pub trait StaticFileProviderFactory {
    /// The network primitives type [`StaticFileProvider`] is using.
    type Primitives: NodePrimitives;

    /// Create new instance of static file provider.
    fn static_file_provider(&self) -> StaticFileProvider<Self::Primitives>;
}