pub trait FunctionService:
Send
+ Sync
+ 'static {
// Required methods
fn invoke<'life0, 'async_trait>(
&'life0 self,
request: Request<InvokeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InvokeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_function_url<'life0, 'async_trait>(
&'life0 self,
request: Request<GetFunctionUrlRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetFunctionUrlResponse>, 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 FunctionServiceServer.
Required Methods§
Sourcefn invoke<'life0, 'async_trait>(
&'life0 self,
request: Request<InvokeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InvokeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn invoke<'life0, 'async_trait>(
&'life0 self,
request: Request<InvokeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InvokeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Invoke a function with HTTP request data
Sourcefn get_function_url<'life0, 'async_trait>(
&'life0 self,
request: Request<GetFunctionUrlRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetFunctionUrlResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_function_url<'life0, 'async_trait>(
&'life0 self,
request: Request<GetFunctionUrlRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetFunctionUrlResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the public URL of the function, if available