Struct quilkin::xds::service::discovery::v3::aggregated_discovery_service_client::AggregatedDiscoveryServiceClient
source · [−]pub struct AggregatedDiscoveryServiceClient<T> { /* private fields */ }
Expand description
See https://github.com/envoyproxy/envoy-api#apis for a description of the role of ADS and how it is intended to be used by a management server. ADS requests have the same structure as their singleton xDS counterparts, but can multiplex many resource types on a single stream. The type_url in the DiscoveryRequest/DiscoveryResponse provides sufficient information to recover the multiplexed singleton APIs at the Envoy instance and management server.
Implementations
sourceimpl<T> AggregatedDiscoveryServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> AggregatedDiscoveryServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> AggregatedDiscoveryServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_gzip(self) -> Self
pub fn send_gzip(self) -> Self
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_gzip(self) -> Self
pub fn accept_gzip(self) -> Self
Enable decompressing responses with gzip
.
sourcepub async fn stream_aggregated_resources(
&mut self,
request: impl IntoStreamingRequest<Message = DiscoveryRequest>
) -> Result<Response<Streaming<DiscoveryResponse>>, Status>
pub async fn stream_aggregated_resources(
&mut self,
request: impl IntoStreamingRequest<Message = DiscoveryRequest>
) -> Result<Response<Streaming<DiscoveryResponse>>, Status>
This is a gRPC-only API.
pub async fn delta_aggregated_resources(
&mut self,
request: impl IntoStreamingRequest<Message = DeltaDiscoveryRequest>
) -> Result<Response<Streaming<DeltaDiscoveryResponse>>, Status>
Trait Implementations
sourceimpl<T: Clone> Clone for AggregatedDiscoveryServiceClient<T>
impl<T: Clone> Clone for AggregatedDiscoveryServiceClient<T>
sourcefn clone(&self) -> AggregatedDiscoveryServiceClient<T>
fn clone(&self) -> AggregatedDiscoveryServiceClient<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<T> RefUnwindSafe for AggregatedDiscoveryServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for AggregatedDiscoveryServiceClient<T>where
T: Send,
impl<T> Sync for AggregatedDiscoveryServiceClient<T>where
T: Sync,
impl<T> Unpin for AggregatedDiscoveryServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for AggregatedDiscoveryServiceClient<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request