Struct hrpc::server::LayeredService [−][src]
pub struct LayeredService<S, L, M> where
L: Layer<HrpcService, Service = S> + Clone + Sync + Send + 'static,
S: Service<BoxRequest, Response = BoxResponse, Error = Infallible> + Send + 'static,
S::Future: Send,
M: MakeRoutes, { /* fields omitted */ }
Expand description
Type that layers the handlers that are produced by a MakeRoutes
.
Trait Implementations
impl<S, L, M> Clone for LayeredService<S, L, M> where
L: Layer<HrpcService, Service = S> + Clone + Sync + Send + 'static,
S: Service<BoxRequest, Response = BoxResponse, Error = Infallible> + Send + 'static,
S::Future: Send,
M: MakeRoutes + Clone,
impl<S, L, M> Clone for LayeredService<S, L, M> where
L: Layer<HrpcService, Service = S> + Clone + Sync + Send + 'static,
S: Service<BoxRequest, Response = BoxResponse, Error = Infallible> + Send + 'static,
S::Future: Send,
M: MakeRoutes + Clone,
impl<S, L, M> MakeRoutes for LayeredService<S, L, M> where
L: Layer<HrpcService, Service = S> + Clone + Sync + Send + 'static,
S: Service<BoxRequest, Response = BoxResponse, Error = Infallible> + Send + 'static,
S::Future: Send,
M: MakeRoutes,
impl<S, L, M> MakeRoutes for LayeredService<S, L, M> where
L: Layer<HrpcService, Service = S> + Clone + Sync + Send + 'static,
S: Service<BoxRequest, Response = BoxResponse, Error = Infallible> + Send + 'static,
S::Future: Send,
M: MakeRoutes,
Creates a Routes
, which will be used to build a RoutesFinalized
instance.
fn combine_with<Other>(self, other: Other) -> ServiceStack<Other, Self> where
Other: MakeRoutes,
Self: Sized,
fn combine_with<Other>(self, other: Other) -> ServiceStack<Other, Self> where
Other: MakeRoutes,
Self: Sized,
Combines this server with another server.
fn layer<S, L>(self, layer: L) -> LayeredService<S, L, Self> where
L: Layer<HrpcService, Service = S> + Clone + Sync + Send + 'static,
S: Service<BoxRequest, Response = BoxResponse, Error = Infallible> + Send + 'static,
S::Future: Send,
Self: Sized,
fn layer<S, L>(self, layer: L) -> LayeredService<S, L, Self> where
L: Layer<HrpcService, Service = S> + Clone + Sync + Send + 'static,
S: Service<BoxRequest, Response = BoxResponse, Error = Infallible> + Send + 'static,
S::Future: Send,
Self: Sized,
Layers this server with a layer. Read more
Auto Trait Implementations
impl<S, L, M> RefUnwindSafe for LayeredService<S, L, M> where
L: RefUnwindSafe,
M: RefUnwindSafe,
impl<S, L, M> Send for LayeredService<S, L, M>
impl<S, L, M> Sync for LayeredService<S, L, M> where
M: Sync,
impl<S, L, M> Unpin for LayeredService<S, L, M> where
L: Unpin,
M: Unpin,
impl<S, L, M> UnwindSafe for LayeredService<S, L, M> where
L: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn vzip(self) -> V
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more