[][src]Struct blip::overlay::GrpcService

pub struct GrpcService<S> { /* fields omitted */ }

A wrapper around an arbitrary Service that will implement ExposedService with an empty MeshService implementation.

This can be used to serve a service that isn't mesh-aware.

Implementations

impl<S> GrpcService<S> where
    S: Service<HttpRequest<Body>, Response = HttpResponse<BoxBody>> + NamedService + Clone + Send + 'static,
    S::Future: Send + 'static,
    S::Error: Into<Box<dyn Error + Send + Sync>> + Send
[src]

pub fn new(svc: S) -> Self[src]

Wrap a type that implements Service.

Trait Implementations

impl<S: Clone> Clone for GrpcService<S>[src]

impl<S: Copy> Copy for GrpcService<S>[src]

impl<S: Debug> Debug for GrpcService<S>[src]

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

type Service = S

The service implementation.

impl<S: Send> MeshService for GrpcService<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for GrpcService<S> where
    S: RefUnwindSafe

impl<S> Send for GrpcService<S> where
    S: Send

impl<S> Sync for GrpcService<S> where
    S: Sync

impl<S> Unpin for GrpcService<S> where
    S: Unpin

impl<S> UnwindSafe for GrpcService<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]