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.