Trait ProcedureService
pub trait ProcedureService:
Send
+ Sync
+ 'static {
// Required methods
fn query<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryProcedureRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProcedureStateResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn ddl<'life0, 'async_trait>(
&'life0 self,
request: Request<DdlTaskRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DdlTaskResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn migrate<'life0, 'async_trait>(
&'life0 self,
request: Request<MigrateRegionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MigrateRegionResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn details<'life0, 'async_trait>(
&'life0 self,
request: Request<ProcedureDetailRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProcedureDetailResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with ProcedureServiceServer.
Required Methods§
fn query<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryProcedureRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProcedureStateResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryProcedureRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProcedureStateResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Query a submitted procedure state
fn ddl<'life0, 'async_trait>(
&'life0 self,
request: Request<DdlTaskRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DdlTaskResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn ddl<'life0, 'async_trait>(
&'life0 self,
request: Request<DdlTaskRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DdlTaskResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Submits a DDL task