pub trait StaticFileProviderFactory: NodePrimitivesProvider {
// Required methods
fn static_file_provider(&self) -> StaticFileProvider<Self::Primitives>;
fn get_static_file_writer(
&self,
block: BlockNumber,
segment: StaticFileSegment,
) -> ProviderResult<StaticFileProviderRWRefMut<'_, Self::Primitives>>;
}Expand description
Static file provider factory.
Required Methods§
Sourcefn static_file_provider(&self) -> StaticFileProvider<Self::Primitives>
fn static_file_provider(&self) -> StaticFileProvider<Self::Primitives>
Create new instance of static file provider.
Sourcefn get_static_file_writer(
&self,
block: BlockNumber,
segment: StaticFileSegment,
) -> ProviderResult<StaticFileProviderRWRefMut<'_, Self::Primitives>>
fn get_static_file_writer( &self, block: BlockNumber, segment: StaticFileSegment, ) -> ProviderResult<StaticFileProviderRWRefMut<'_, Self::Primitives>>
Returns a mutable reference to a
StaticFileProviderRW of a
StaticFileSegment.
Implementors§
impl<C: Send + Sync, N: NodePrimitives> StaticFileProviderFactory for NoopProvider<C, N>
Available on crate features
test-utils only.