[][src]Trait blip::overlay::ExposedService

pub trait ExposedService: MeshService + Clone {
    type Service: Service<HttpRequest<Body>, Response = HttpResponse<BoxBody>> + NamedService + Clone + Send + 'static;
    fn into_service(self) -> Self::Service;

    fn add_metadata<K: Extend<(String, Vec<u8>)>>(&self, _keys: &mut K) { ... }
}

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.

Loading content...

Required methods

fn into_service(self) -> Self::Service

Convert self into a Service.

Loading content...

Provided methods

fn add_metadata<K: Extend<(String, Vec<u8>)>>(&self, _keys: &mut K)

Add metadata to distribute to other members of the mesh.

Loading content...

Implementors

impl ExposedService for Cache[src]

type Service = CacheServer<Self>

impl<S> ExposedService for GrpcService<S> where
    S: Service<HttpRequest<Body>, Response = HttpResponse<BoxBody>> + NamedService + Clone + Send + 'static, 
[src]

type Service = S

Loading content...