Skip to main content

EngineService

Trait EngineService 

Source
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§

Source

type BrowserSessionStream: Stream<Item = Result<BrowserSessionEvent, Status>> + Send + 'static

Server streaming response type for the BrowserSession method.

Source

type TabSessionStream: Stream<Item = Result<TabSessionEvent, Status>> + Send + 'static

Server streaming response type for the TabSession method.

Required Methods§

Source

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,

Source

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,

Source

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".

Implementors§