pub struct Client<C: ServiceClient> { /* private fields */ }
Expand description
Client that can talk to an XDS server using the aDS protocol.
Implementations§
source§impl Client<AggregatedControlPlaneDiscoveryServiceClient<Channel>>
impl Client<AggregatedControlPlaneDiscoveryServiceClient<Channel>>
pub fn mds_client_stream( &self, config: Arc<Config>, rt_config: Ready ) -> BidirectionalStream<AggregatedControlPlaneDiscoveryServiceClient<Channel>>
pub async fn delta_stream( self, config: Arc<Config>, rt_config: Ready ) -> Result<DeltaSubscription, Self>
source§impl Client<AggregatedDiscoveryServiceClient<Channel>>
impl Client<AggregatedDiscoveryServiceClient<Channel>>
sourcepub fn xds_client_stream(
&self,
config: Arc<Config>,
rt_config: Ready
) -> BidirectionalStream<AggregatedDiscoveryServiceClient<Channel>>
pub fn xds_client_stream( &self, config: Arc<Config>, rt_config: Ready ) -> BidirectionalStream<AggregatedDiscoveryServiceClient<Channel>>
Starts a new stream to the xDS management server.
sourcepub async fn delta_subscribe(
self,
config: Arc<Config>,
rt_config: Ready,
resources: impl IntoIterator<Item = (ResourceType, Vec<String>)>
) -> Result<DeltaSubscription, Self>
pub async fn delta_subscribe( self, config: Arc<Config>, rt_config: Ready, resources: impl IntoIterator<Item = (ResourceType, Vec<String>)> ) -> Result<DeltaSubscription, Self>
Attempts to start a new delta stream to the xDS management server, if the management server does not support delta xDS we return the client as an error
Trait Implementations§
Auto Trait Implementations§
impl<C> !RefUnwindSafe for Client<C>
impl<C> Send for Client<C>
impl<C> Sync for Client<C>where
C: Sync,
impl<C> Unpin for Client<C>where
C: Unpin,
impl<C> !UnwindSafe for Client<C>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§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