pub trait StaticFileProviderFactory: NodePrimitivesProvider {
// Required methods
fn static_file_provider(&self) -> StaticFileProvider<Self::Primitives>;
fn get_static_file_writer(
&self,
block: u64,
segment: StaticFileSegment,
) -> Result<StaticFileProviderRWRefMut<'_, Self::Primitives>, ProviderError>;
}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: u64,
segment: StaticFileSegment,
) -> Result<StaticFileProviderRWRefMut<'_, Self::Primitives>, ProviderError>
fn get_static_file_writer( &self, block: u64, segment: StaticFileSegment, ) -> Result<StaticFileProviderRWRefMut<'_, Self::Primitives>, ProviderError>
Returns a mutable reference to a
StaticFileProviderRW of a
StaticFileSegment.