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: u64,
        segment: StaticFileSegment,
    ) -> Result<StaticFileProviderRWRefMut<'_, Self::Primitives>, ProviderError>;
}
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: u64, segment: StaticFileSegment, ) -> Result<StaticFileProviderRWRefMut<'_, Self::Primitives>, ProviderError>

Returns a mutable reference to a StaticFileProviderRW of a StaticFileSegment.

Implementors§