pub trait SelectWrapper {
    // Required method
    fn execute<'life0, 'async_trait, T, V>(
        &'life0 self,
        wrapper: QueryWrapper<'static, T>,
    ) -> Pin<Box<dyn Future<Output = Result<V, Error>> + Send + 'async_trait>>
       where T: DeserializeOwned + TableName + Send + Sync + 'static + 'async_trait,
             V: DeserializeOwned + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    // Provided methods
    fn select_list<'life0, 'async_trait, T, V>(
        &'life0 self,
        wrapper: QueryWrapper<'static, T>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>>
       where T: DeserializeOwned + TableName + Send + Sync + 'static + 'async_trait,
             V: DeserializeOwned + 'async_trait,
             Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn select_one<'life0, 'async_trait, T, V>(
        &'life0 self,
        wrapper: QueryWrapper<'static, T>,
    ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
       where T: DeserializeOwned + TableName + Send + Sync + 'static + 'async_trait,
             V: DeserializeOwned + 'async_trait,
             Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn select_count<'life0, 'async_trait, T, V>(
        &'life0 self,
        wrapper: QueryWrapper<'static, T>,
    ) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>
       where T: DeserializeOwned + TableName + Send + Sync + 'static + 'async_trait,
             V: DeserializeOwned + 'async_trait,
             Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}Expand description
可为执行器实现 trait
Required Methods§
fn execute<'life0, 'async_trait, T, V>(
    &'life0 self,
    wrapper: QueryWrapper<'static, T>,
) -> Pin<Box<dyn Future<Output = Result<V, Error>> + Send + 'async_trait>>where
    T: DeserializeOwned + TableName + Send + Sync + 'static + 'async_trait,
    V: DeserializeOwned + 'async_trait,
    Self: 'async_trait,
    'life0: 'async_trait,
Provided Methods§
fn select_list<'life0, 'async_trait, T, V>(
    &'life0 self,
    wrapper: QueryWrapper<'static, T>,
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>>where
    T: DeserializeOwned + TableName + Send + Sync + 'static + 'async_trait,
    V: DeserializeOwned + 'async_trait,
    Self: Sync + 'async_trait,
    'life0: 'async_trait,
fn select_one<'life0, 'async_trait, T, V>(
    &'life0 self,
    wrapper: QueryWrapper<'static, T>,
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>where
    T: DeserializeOwned + TableName + Send + Sync + 'static + 'async_trait,
    V: DeserializeOwned + 'async_trait,
    Self: Sync + 'async_trait,
    'life0: 'async_trait,
fn select_count<'life0, 'async_trait, T, V>(
    &'life0 self,
    wrapper: QueryWrapper<'static, T>,
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where
    T: DeserializeOwned + TableName + Send + Sync + 'static + 'async_trait,
    V: DeserializeOwned + 'async_trait,
    Self: Sync + 'async_trait,
    'life0: '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.