pub trait InboundServerPolicies: Send + Sync + 'static {
    type WatchPortStream: Stream<Item = Result<Server, Status>> + Send + 'static;

    fn get_port<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PortSpec>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Server>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn watch_port<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PortSpec>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::WatchPortStream>, 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 InboundServerPoliciesServer.

Required Associated Types

Server streaming response type for the WatchPort method.

Required Methods

Implementors