Trait GreptimeDatabase
pub trait GreptimeDatabase:
Send
+ Sync
+ 'static {
// Required methods
fn handle<'life0, 'async_trait>(
&'life0 self,
request: Request<GreptimeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GreptimeResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_requests<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<GreptimeRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<GreptimeResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with GreptimeDatabaseServer.
Required Methods§
fn handle<'life0, 'async_trait>(
&'life0 self,
request: Request<GreptimeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GreptimeResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn handle_requests<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<GreptimeRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<GreptimeResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".