pub trait DatabaseProviderROFactory {
type Provider;
// Required method
fn database_provider_ro(&self) -> Result<Self::Provider, ProviderError>;
}Available on crate feature
provider only.Expand description
A trait which can be used to describe any factory-like type which returns a read-only provider.
Required Associated Types§
Required Methods§
Sourcefn database_provider_ro(&self) -> Result<Self::Provider, ProviderError>
fn database_provider_ro(&self) -> Result<Self::Provider, ProviderError>
Creates and returns a Provider.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<F, N> DatabaseProviderROFactory for OverlayStateProviderFactory<F, N>
impl<F, N> DatabaseProviderROFactory for OverlayStateProviderFactory<F, N>
Source§fn database_provider_ro(
&self,
) -> Result<OverlayStateProvider<<F as DatabaseProviderFactory>::Provider>, ProviderError>
fn database_provider_ro( &self, ) -> Result<OverlayStateProvider<<F as DatabaseProviderFactory>::Provider>, ProviderError>
Create a read-only OverlayStateProvider.