pub trait EngineService:
Send
+ Sync
+ 'static {
type BrowserSessionStream: Stream<Item = Result<BrowserSessionEvent, Status>> + Send + 'static;
type TabSessionStream: Stream<Item = Result<TabSessionEvent, 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 browser_session<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<BrowserSessionCommand>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::BrowserSessionStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn tab_session<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<TabSessionCommand>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::TabSessionStream>, 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 BrowserSessionStream: Stream<Item = Result<BrowserSessionEvent, Status>> + Send + 'static
type BrowserSessionStream: Stream<Item = Result<BrowserSessionEvent, Status>> + Send + 'static
Server streaming response type for the BrowserSession method.
Sourcetype TabSessionStream: Stream<Item = Result<TabSessionEvent, Status>> + Send + 'static
type TabSessionStream: Stream<Item = Result<TabSessionEvent, Status>> + Send + 'static
Server streaming response type for the TabSession 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 browser_session<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<BrowserSessionCommand>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::BrowserSessionStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tab_session<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<TabSessionCommand>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::TabSessionStream>, 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".