pub struct Service {
    pub cache: Arc<Cache>,
}

Fields§

§cache: Arc<Cache>

Implementations§

Examples found in repository?
src/service/discovery/route.rs (line 17)
13
14
15
16
17
18
    async fn stream_routes(
        &self,
        req: Request<Streaming<DiscoveryRequest>>,
    ) -> Result<Response<Self::StreamRoutesStream>, Status> {
        self.stream(req, ROUTE)
    }
More examples
Hide additional examples
src/service/discovery/secret.rs (line 17)
13
14
15
16
17
18
    async fn stream_secrets(
        &self,
        req: Request<Streaming<DiscoveryRequest>>,
    ) -> Result<Response<Self::StreamSecretsStream>, Status> {
        self.stream(req, SECRET)
    }
src/service/discovery/runtime.rs (line 17)
13
14
15
16
17
18
    async fn stream_runtime(
        &self,
        req: Request<Streaming<DiscoveryRequest>>,
    ) -> Result<Response<Self::StreamRuntimeStream>, Status> {
        self.stream(req, RUNTIME)
    }
src/service/discovery/cluster.rs (line 17)
13
14
15
16
17
18
    async fn stream_clusters(
        &self,
        req: Request<Streaming<DiscoveryRequest>>,
    ) -> Result<Response<Self::StreamClustersStream>, Status> {
        self.stream(req, CLUSTER)
    }
src/service/discovery/endpoint.rs (line 17)
13
14
15
16
17
18
    async fn stream_endpoints(
        &self,
        req: Request<Streaming<DiscoveryRequest>>,
    ) -> Result<Response<Self::StreamEndpointsStream>, Status> {
        self.stream(req, ENDPOINT)
    }
src/service/discovery/listener.rs (line 17)
13
14
15
16
17
18
    async fn stream_listeners(
        &self,
        req: Request<Streaming<DiscoveryRequest>>,
    ) -> Result<Response<Self::StreamListenersStream>, Status> {
        self.stream(req, LISTENER)
    }
Examples found in repository?
src/service/discovery/route.rs (line 33)
29
30
31
32
33
34
    async fn fetch_routes(
        &self,
        req: Request<DiscoveryRequest>,
    ) -> Result<Response<DiscoveryResponse>, Status> {
        self.fetch(req.get_ref(), ROUTE).await
    }
More examples
Hide additional examples
src/service/discovery/secret.rs (line 33)
29
30
31
32
33
34
    async fn fetch_secrets(
        &self,
        req: Request<DiscoveryRequest>,
    ) -> Result<Response<DiscoveryResponse>, Status> {
        self.fetch(req.get_ref(), SECRET).await
    }
src/service/discovery/runtime.rs (line 33)
29
30
31
32
33
34
    async fn fetch_runtime(
        &self,
        req: Request<DiscoveryRequest>,
    ) -> Result<Response<DiscoveryResponse>, Status> {
        self.fetch(req.get_ref(), RUNTIME).await
    }
src/service/discovery/cluster.rs (line 33)
29
30
31
32
33
34
    async fn fetch_clusters(
        &self,
        req: Request<DiscoveryRequest>,
    ) -> Result<Response<DiscoveryResponse>, Status> {
        self.fetch(req.get_ref(), CLUSTER).await
    }
src/service/discovery/endpoint.rs (line 33)
29
30
31
32
33
34
    async fn fetch_endpoints(
        &self,
        req: Request<DiscoveryRequest>,
    ) -> Result<Response<DiscoveryResponse>, Status> {
        self.fetch(req.get_ref(), ENDPOINT).await
    }
src/service/discovery/listener.rs (line 33)
29
30
31
32
33
34
    async fn fetch_listeners(
        &self,
        req: Request<DiscoveryRequest>,
    ) -> Result<Response<DiscoveryResponse>, Status> {
        self.fetch(req.get_ref(), LISTENER).await
    }

Trait Implementations§

Server streaming response type for the StreamAggregatedResources method.
This is a gRPC-only API.
Server streaming response type for the DeltaAggregatedResources method.
Server streaming response type for the StreamClusters method.
Server streaming response type for the DeltaClusters method.
Formats the value using the given formatter. Read more
Server streaming response type for the StreamEndpoints method.
The resource_names field in DiscoveryRequest specifies a list of clusters to subscribe to updates for.
Server streaming response type for the DeltaEndpoints method.
Server streaming response type for the StreamExtensionConfigs method.
Server streaming response type for the DeltaExtensionConfigs method.
Server streaming response type for the StreamListeners method.
Server streaming response type for the DeltaListeners method.
Server streaming response type for the StreamRoutes method.
Server streaming response type for the DeltaRoutes method.
Server streaming response type for the StreamRuntime method.
Server streaming response type for the DeltaRuntime method.
Server streaming response type for the StreamScopedRoutes method.
Server streaming response type for the DeltaScopedRoutes method.
Server streaming response type for the StreamSecrets method.
Server streaming response type for the DeltaSecrets method.
Server streaming response type for the DeltaVirtualHosts method.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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