[−][src]Trait blip::ExposedService
A trait for MeshServices that can be converted into a Service to be served over grpc.
Associated Types
type Service: Service<HttpRequest<Body>, Response = HttpResponse<BoxBody>> + NamedService + Clone + Send + 'static
The service implementation.
Required methods
fn into_service(self) -> Self::Service
Convert self into a Service.
Provided methods
fn add_metadata<K: Extend<(String, Vec<u8>)>>(&self, _keys: &mut K)
Add metadata to distribute to other members of the mesh.
Implementors
impl ExposedService for Cache
[src]
fn add_metadata<K: Extend<(String, Vec<u8>)>>(&self, keys: &mut K)
[src]
type Service = CacheServer<Self>
fn into_service(self) -> Self::Service
[src]
impl<S> ExposedService for GrpcService<S> where
S: Service<HttpRequest<Body>, Response = HttpResponse<BoxBody>> + NamedService + Clone + Send + 'static,
[src]
S: Service<HttpRequest<Body>, Response = HttpResponse<BoxBody>> + NamedService + Clone + Send + 'static,