StaticFileProviderFactory

Trait StaticFileProviderFactory 

Source
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§

Source

fn static_file_provider(&self) -> StaticFileProvider<Self::Primitives>

Create new instance of static file provider.

Source

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§