pub trait StaticFileProviderFactory {
type Primitives: NodePrimitives;
// Required method
fn static_file_provider(&self) -> StaticFileProvider<Self::Primitives>;
}
Expand description
Static file provider factory.
Required Associated Types§
Sourcetype Primitives: NodePrimitives
type Primitives: NodePrimitives
The network primitives type StaticFileProvider
is using.
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.