[][src]Struct webtonic_server::Route

pub struct Route<A, B>(_, _);

Representation of a gRPC route.

You will likely not interact with this directly, but rather through the Server and Router structs.

Trait Implementations

impl<A: Clone, B: Clone> Clone for Route<A, B>[src]

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

impl<A, B> Service<(String, Request<BoxBody>)> for Route<A, B> where
    A: Service<Request<BoxBody>, Response = Response<BoxBody>, Error = Never> + NamedService,
    A::Future: Send + 'static,
    B: Service<(String, Request<BoxBody>), Response = Response<BoxBody>, Error = Never>,
    B::Future: Send + 'static, 
[src]

type Response = Response<BoxBody>

Responses given by the service.

type Error = Never

Errors produced by the service.

type Future = Either<A::Future, B::Future>

The future response value.

Auto Trait Implementations

impl<A, B> RefUnwindSafe for Route<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe

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

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

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

impl<A, B> UnwindSafe for Route<A, B> where
    A: UnwindSafe,
    B: 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> 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> Same<T> for T

type Output = T

Should always be Self

impl<T, Request> ServiceExt<Request> for T where
    T: Service<Request> + ?Sized
[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]