Struct googapis::google::cloud::apigeeconnect::v1::tether_client::TetherClient [−][src]
pub struct TetherClient<T> { /* fields omitted */ }
Expand description
Tether provides a way for the control plane to send HTTP API requests to services in data planes that runs in a remote datacenter without requiring customers to open firewalls on their runtime plane.
Implementations
impl<T> TetherClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> TetherClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> TetherClient<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,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn egress(
&mut self,
request: impl IntoStreamingRequest<Message = EgressResponse>
) -> Result<Response<Streaming<EgressRequest>>, Status>
pub async fn egress(
&mut self,
request: impl IntoStreamingRequest<Message = EgressResponse>
) -> Result<Response<Streaming<EgressRequest>>, Status>
Egress streams egress requests and responses. Logically, this is not actually a streaming request, but uses streaming as a mechanism to flip the client-server relationship of gRPC so that the server can act as a client. The listener, the RPC server, accepts connections from the dialer, the RPC client. The listener streams http requests and the dialer streams http responses.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for TetherClient<T> where
T: RefUnwindSafe,
impl<T> Send for TetherClient<T> where
T: Send,
impl<T> Sync for TetherClient<T> where
T: Sync,
impl<T> Unpin for TetherClient<T> where
T: Unpin,
impl<T> UnwindSafe for TetherClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more