Loadable

Trait Loadable 

Source
pub trait Loadable<DB, T: JoinMeta> {
    // Required method
    fn load<'s, 'e, 'async_trait, E>(
        &'s mut self,
        db: E,
    ) -> Pin<Box<dyn Future<Output = Result<&'s T>> + Send + 'async_trait>>
       where T::IdType: 'e + Send + Sync,
             E: 'e + Executor<'e, Database = DB> + 'async_trait,
             Self: 'async_trait,
             's: 'async_trait,
             'e: 'async_trait;
}

Required Methods§

Source

fn load<'s, 'e, 'async_trait, E>( &'s mut self, db: E, ) -> Pin<Box<dyn Future<Output = Result<&'s T>> + Send + 'async_trait>>
where T::IdType: 'e + Send + Sync, E: 'e + Executor<'e, Database = DB> + 'async_trait, Self: 'async_trait, 's: 'async_trait, 'e: '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.

Implementors§

Source§

impl<DB, T> Loadable<DB, T> for Join<T>
where DB: Database, T: JoinMeta + Model<DB> + Send, T::IdType: for<'a> Encode<'a, DB> + for<'a> Decode<'a, DB> + Type<DB>,