pub trait Operations:
Send
+ Sync
+ 'static {
// Required methods
fn list<'life0, 'async_trait>(
&'life0 self,
request: Request<OperationsListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OperationsListResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<OperationsGetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OperationsGetResponse>, 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 OperationsServer.
Required Methods§
Sourcefn list<'life0, 'async_trait>(
&'life0 self,
request: Request<OperationsListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OperationsListResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
request: Request<OperationsListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OperationsListResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the complete admitted operation inventory; Private and unavailable operations are excluded.
Sourcefn get<'life0, 'async_trait>(
&'life0 self,
request: Request<OperationsGetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OperationsGetResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<OperationsGetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OperationsGetResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read one admitted operation contract; an unavailable or unauthorized identity refuses.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".