Struct tonic::transport::server::RouterService[][src]

pub struct RouterService<A, B> { /* fields omitted */ }
This is supported on crate feature transport only.

A service that is produced from a Tonic Router.

This service implementation will route between multiple Tonic gRPC endpoints and can be consumed with the rest of the tower ecosystem.

Trait Implementations

impl<A: Debug, B: Debug> Debug for RouterService<A, B>[src]

impl<A, B> Service<Request<Body>> for RouterService<A, B> where
    A: Service<Request<Body>, Response = Response<BoxBody>> + Clone + Send + 'static,
    A::Future: Send + 'static,
    A::Error: Into<Box<dyn Error + Send + Sync>> + Send,
    B: Service<Request<Body>, Response = Response<BoxBody>> + Clone + Send + 'static,
    B::Future: Send + 'static,
    B::Error: Into<Box<dyn Error + Send + Sync>> + Send
[src]

type Response = Response<BoxBody>

Responses given by the service.

type Error = Box<dyn Error + Send + Sync>

Errors produced by the service.

type Future = FutureEither<MapErr<A::Future, fn(_: A::Error) -> Box<dyn Error + Send + Sync>>, MapErr<B::Future, fn(_: B::Error) -> Box<dyn Error + Send + Sync>>>

The future response value.

Auto Trait Implementations

impl<A, B> !RefUnwindSafe for RouterService<A, B>

impl<A, B> Send for RouterService<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for RouterService<A, B> where
    A: Sync,
    B: Sync

impl<A, B> Unpin for RouterService<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> !UnwindSafe for RouterService<A, B>

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> Instrument for T[src]

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

impl<T, Request> ServiceExt<Request> for T where
    T: Service<Request> + ?Sized
[src]

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]