pub trait MakeShared<Args> {
type Backend;
type Config;
type MakeError;
// Required method
fn make_shared_with_config(
&mut self,
config: Self::Config,
) -> Result<Self::Backend, Self::MakeError>;
// Provided method
fn make_shared(&mut self) -> Result<Self::Backend, Self::MakeError>
where Self::Config: Default { ... }
}Expand description
Trait for creating shared backend instances
Required Associated Types§
Required Methods§
Returns the backend with config
Provided Methods§
Returns the backend to be shared