Struct rust_control_plane::service::common::Service
source · Fields§
§cache: Arc<Cache>
Implementations§
source§impl Service
impl Service
pub fn new(cache: Arc<Cache>) -> Self
sourcepub fn stream(
&self,
req: Request<Streaming<DiscoveryRequest>>,
type_url: &'static str
) -> Result<Response<StreamResponse<DiscoveryResponse>>, Status>
pub fn stream(
&self,
req: Request<Streaming<DiscoveryRequest>>,
type_url: &'static str
) -> Result<Response<StreamResponse<DiscoveryResponse>>, Status>
Examples found in repository?
More examples
Additional examples can be found in:
sourcepub async fn fetch(
&self,
req: &DiscoveryRequest,
type_url: &'static str
) -> Result<Response<DiscoveryResponse>, Status>
pub async fn fetch(
&self,
req: &DiscoveryRequest,
type_url: &'static str
) -> Result<Response<DiscoveryResponse>, Status>
Examples found in repository?
More examples
Additional examples can be found in:
Trait Implementations§
source§impl AggregatedDiscoveryService for Service
impl AggregatedDiscoveryService for Service
§type StreamAggregatedResourcesStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
type StreamAggregatedResourcesStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the StreamAggregatedResources method.
source§fn stream_aggregated_resources<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamAggregatedResourcesStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_aggregated_resources<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamAggregatedResourcesStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
This is a gRPC-only API.
§type DeltaAggregatedResourcesStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
type DeltaAggregatedResourcesStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the DeltaAggregatedResources method.
fn delta_aggregated_resources<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<Streaming<DeltaDiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeltaAggregatedResourcesStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl ClusterDiscoveryService for Service
impl ClusterDiscoveryService for Service
§type StreamClustersStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
type StreamClustersStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the StreamClusters method.
fn stream_clusters<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamClustersStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
§type DeltaClustersStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
type DeltaClustersStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the DeltaClusters method.
fn delta_clusters<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<Streaming<DeltaDiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeltaClustersStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_clusters<'life0, 'async_trait>(
&'life0 self,
req: Request<DiscoveryRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DiscoveryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl EndpointDiscoveryService for Service
impl EndpointDiscoveryService for Service
§type StreamEndpointsStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
type StreamEndpointsStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the StreamEndpoints method.
source§fn stream_endpoints<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamEndpointsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_endpoints<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamEndpointsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The resource_names field in DiscoveryRequest specifies a list of clusters
to subscribe to updates for.
§type DeltaEndpointsStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
type DeltaEndpointsStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the DeltaEndpoints method.
fn delta_endpoints<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<Streaming<DeltaDiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeltaEndpointsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_endpoints<'life0, 'async_trait>(
&'life0 self,
req: Request<DiscoveryRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DiscoveryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl ExtensionConfigDiscoveryService for Service
impl ExtensionConfigDiscoveryService for Service
§type StreamExtensionConfigsStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
type StreamExtensionConfigsStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the StreamExtensionConfigs method.
fn stream_extension_configs<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamExtensionConfigsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
§type DeltaExtensionConfigsStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
type DeltaExtensionConfigsStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the DeltaExtensionConfigs method.
fn delta_extension_configs<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<Streaming<DeltaDiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeltaExtensionConfigsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_extension_configs<'life0, 'async_trait>(
&'life0 self,
req: Request<DiscoveryRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DiscoveryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl ListenerDiscoveryService for Service
impl ListenerDiscoveryService for Service
§type StreamListenersStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
type StreamListenersStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the StreamListeners method.
fn stream_listeners<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamListenersStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
§type DeltaListenersStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
type DeltaListenersStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the DeltaListeners method.
fn delta_listeners<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<Streaming<DeltaDiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeltaListenersStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_listeners<'life0, 'async_trait>(
&'life0 self,
req: Request<DiscoveryRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DiscoveryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl RouteDiscoveryService for Service
impl RouteDiscoveryService for Service
§type StreamRoutesStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
type StreamRoutesStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the StreamRoutes method.
fn stream_routes<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamRoutesStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
§type DeltaRoutesStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
type DeltaRoutesStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the DeltaRoutes method.
fn delta_routes<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<Streaming<DeltaDiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeltaRoutesStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_routes<'life0, 'async_trait>(
&'life0 self,
req: Request<DiscoveryRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DiscoveryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl RuntimeDiscoveryService for Service
impl RuntimeDiscoveryService for Service
§type StreamRuntimeStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
type StreamRuntimeStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the StreamRuntime method.
fn stream_runtime<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamRuntimeStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
§type DeltaRuntimeStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
type DeltaRuntimeStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the DeltaRuntime method.
fn delta_runtime<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<Streaming<DeltaDiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeltaRuntimeStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_runtime<'life0, 'async_trait>(
&'life0 self,
req: Request<DiscoveryRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DiscoveryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl ScopedRoutesDiscoveryService for Service
impl ScopedRoutesDiscoveryService for Service
§type StreamScopedRoutesStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
type StreamScopedRoutesStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the StreamScopedRoutes method.
fn stream_scoped_routes<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamScopedRoutesStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
§type DeltaScopedRoutesStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
type DeltaScopedRoutesStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the DeltaScopedRoutes method.
fn delta_scoped_routes<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<Streaming<DeltaDiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeltaScopedRoutesStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_scoped_routes<'life0, 'async_trait>(
&'life0 self,
req: Request<DiscoveryRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DiscoveryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl SecretDiscoveryService for Service
impl SecretDiscoveryService for Service
§type StreamSecretsStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
type StreamSecretsStream = Pin<Box<dyn Stream<Item = Result<DiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the StreamSecrets method.
fn stream_secrets<'life0, 'async_trait>(
&'life0 self,
req: Request<Streaming<DiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamSecretsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
§type DeltaSecretsStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
type DeltaSecretsStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the DeltaSecrets method.
fn delta_secrets<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<Streaming<DeltaDiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeltaSecretsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_secrets<'life0, 'async_trait>(
&'life0 self,
req: Request<DiscoveryRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DiscoveryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl VirtualHostDiscoveryService for Service
impl VirtualHostDiscoveryService for Service
§type DeltaVirtualHostsStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
type DeltaVirtualHostsStream = Pin<Box<dyn Stream<Item = Result<DeltaDiscoveryResponse, Status>> + Send + 'static, Global>>
Server streaming response type for the DeltaVirtualHosts method.
fn delta_virtual_hosts<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<Streaming<DeltaDiscoveryRequest>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeltaVirtualHostsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl !UnwindSafe for Service
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request