pub trait ComponentMapper {
type Component;
type Executor: Send;
// Required methods
fn get<'c, 'life0, 'life1, 'async_trait>(
e: &'life0 mut Self::Executor,
db_entity: &'life1 DatabaseEntityId,
) -> Pin<Box<dyn Future<Output = Result<Self::Component, ()>> + Send + 'async_trait>>
where 'c: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn update_component<'c, 'life0, 'life1, 'life2, 'async_trait>(
tr: &'life0 mut Self::Executor,
db_entity: &'life1 DatabaseEntityId,
component: &'life2 Self::Component,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>
where 'c: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn insert_component<'c, 'life0, 'life1, 'life2, 'async_trait>(
tr: &'life0 mut Self::Executor,
db_entity: &'life1 DatabaseEntityId,
component: &'life2 Self::Component,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>
where 'c: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}Required Associated Types§
Required Methods§
fn get<'c, 'life0, 'life1, 'async_trait>(
e: &'life0 mut Self::Executor,
db_entity: &'life1 DatabaseEntityId,
) -> Pin<Box<dyn Future<Output = Result<Self::Component, ()>> + Send + 'async_trait>>where
'c: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn update_component<'c, 'life0, 'life1, 'life2, 'async_trait>(
tr: &'life0 mut Self::Executor,
db_entity: &'life1 DatabaseEntityId,
component: &'life2 Self::Component,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
'c: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn insert_component<'c, 'life0, 'life1, 'life2, 'async_trait>(
tr: &'life0 mut Self::Executor,
db_entity: &'life1 DatabaseEntityId,
component: &'life2 Self::Component,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
'c: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
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.