pub trait ComputerVision: Send + Sync + 'static {
    type ProcessImageBatchStream: Stream<Item = Result<ImgProcResponse, Status>> + Send + 'static;

    // Required methods
    fn process_image<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ImgProcRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ImgProcResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn process_image_batch<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<ImgProcRequest>>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ProcessImageBatchStream>, 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 ComputerVisionServer.

Required Associated Types§

source

type ProcessImageBatchStream: Stream<Item = Result<ImgProcResponse, Status>> + Send + 'static

Server streaming response type for the ProcessImageBatch method.

Required Methods§

source

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

source

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

Implementors§