pub trait NewWithDb {
    // Required method
    fn new<'async_trait>(
        db: Database
    ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

source

fn new<'async_trait>( db: Database ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
where Self: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§