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

    // Required methods
    fn get_port<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PortSpec>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Server>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: '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 Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with InboundServerPoliciesServer.

Required Associated Types§

source

type WatchPortStream: Stream<Item = Result<Server, Status>> + Send + 'static

Server streaming response type for the WatchPort method.

Required Methods§

source

fn get_port<'life0, 'async_trait>( &'life0 self, request: Request<PortSpec> ) -> Pin<Box<dyn Future<Output = Result<Response<Server>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

/ Gets the inbound server policy for a given workload port.

source

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 Self: 'async_trait, 'life0: 'async_trait,

/ Watches the inbound server policy for a given workload port.

Implementors§