pub trait Adapter: Observer + Emitter {
// Provided method
fn ensure_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
_schema: &'life1 Schema,
) -> Pin<Box<dyn Future<Output = Result<ProvisionReport>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Expand description
full adapter contract for read+write backends; may also provision schema.
Provided Methods§
fn ensure_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
_schema: &'life1 Schema,
) -> Pin<Box<dyn Future<Output = Result<ProvisionReport>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".