pub trait BlanketAdapter {
type Target;
// Required methods
fn write_state<S: State>(
target: &Self::Target,
state: &S,
) -> Result<(), JoydbError>;
fn load_state<S: State>(target: &Self::Target) -> Result<S, JoydbError>;
}Expand description
A tiny helper trait that allows to implement Adapter trait in terms of either UnifiedAdapter or PartitionedAdapter traits.
Required Associated Types§
Required Methods§
fn write_state<S: State>( target: &Self::Target, state: &S, ) -> Result<(), JoydbError>
fn load_state<S: State>(target: &Self::Target) -> Result<S, JoydbError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.