pub trait ObservabilityService:
Send
+ Sync
+ 'static {
// Required methods
fn ping<'life0, 'async_trait>(
&'life0 self,
request: Request<PingRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PingResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_task_progress<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTaskProgressRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetTaskProgressResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_cluster_workers<'life0, 'async_trait>(
&'life0 self,
request: Request<GetClusterWorkersRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetClusterWorkersResponse>, 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 ObservabilityServiceServer.
Required Methods§
fn ping<'life0, 'async_trait>(
&'life0 self,
request: Request<PingRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PingResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_task_progress<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTaskProgressRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetTaskProgressResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_cluster_workers<'life0, 'async_trait>(
&'life0 self,
request: Request<GetClusterWorkersRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetClusterWorkersResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".