Skip to main content

DatabaseApi

Trait DatabaseApi 

Source
pub trait DatabaseApi {
    type TableSizes: Serialize + Send + Sync + 'static;

    // Required method
    fn get_table_sizes<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::TableSizes>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Source

type TableSizes: Serialize + Send + Sync + 'static

Required Methods§

Source

fn get_table_sizes<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Self::TableSizes>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§