pub trait DatabaseService:
Send
+ Sync
+ 'static {
// Required methods
fn get_table_sizes<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTableSizesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TableSizesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_migration_status<'life0, 'async_trait>(
&'life0 self,
request: Request<GetMigrationStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MigrationStatusResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with DatabaseServiceServer.
Required Methods§
Sourcefn get_table_sizes<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTableSizesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TableSizesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_table_sizes<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTableSizesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TableSizesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the row count and disk usage of every database table
Sourcefn get_migration_status<'life0, 'async_trait>(
&'life0 self,
request: Request<GetMigrationStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MigrationStatusResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_migration_status<'life0, 'async_trait>(
&'life0 self,
request: Request<GetMigrationStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MigrationStatusResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the progress of the deferred background migrations
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".