pub trait KintaiService: Send + Sync + 'static {
    // Required methods
    fn start<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StartRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<StartResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn finish<'life0, 'async_trait>(
        &'life0 self,
        request: Request<FinishRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<FinishResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn leave<'life0, 'async_trait>(
        &'life0 self,
        request: Request<LeaveRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<LeaveResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_config<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateConfigRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<UpdateConfigResponse>, 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 KintaiServiceServer.

Required Methods§

source

fn start<'life0, 'async_trait>( &'life0 self, request: Request<StartRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<StartResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn finish<'life0, 'async_trait>( &'life0 self, request: Request<FinishRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<FinishResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn leave<'life0, 'async_trait>( &'life0 self, request: Request<LeaveRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<LeaveResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

休暇をとる

source

fn update_config<'life0, 'async_trait>( &'life0 self, request: Request<UpdateConfigRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<UpdateConfigResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§