pub trait SyncMap<T: Send + Sync, U: Send + Sync> {
// Required methods
fn map<'life0, 'async_trait>(
&'life0 self,
source: T,
) -> Pin<Box<dyn Future<Output = Result<U, AppError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn execute<'life0, 'async_trait>(
&'life0 self,
mapped_data: U,
) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".