pub trait EngineService:
Send
+ Sync
+ 'static {
type SurfaceSessionStream: Stream<Item = Result<SurfaceSessionEvent, Status>> + Send + 'static;
type ContextSessionStream: Stream<Item = Result<ContextSessionEvent, Status>> + Send + '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 surface_session<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<SurfaceSessionCommand>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SurfaceSessionStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn context_session<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<ContextSessionCommand>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ContextSessionStream>, 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 EngineServiceServer.
Required Associated Types§
Sourcetype SurfaceSessionStream: Stream<Item = Result<SurfaceSessionEvent, Status>> + Send + 'static
type SurfaceSessionStream: Stream<Item = Result<SurfaceSessionEvent, Status>> + Send + 'static
Server streaming response type for the SurfaceSession method.
Sourcetype ContextSessionStream: Stream<Item = Result<ContextSessionEvent, Status>> + Send + 'static
type ContextSessionStream: Stream<Item = Result<ContextSessionEvent, Status>> + Send + 'static
Server streaming response type for the ContextSession method.
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 surface_session<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<SurfaceSessionCommand>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SurfaceSessionStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn context_session<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<ContextSessionCommand>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ContextSessionStream>, 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".