Struct hrpc::server::LayeredService
source · [−]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, { /* private fields */ }
Expand description
Type that layers the handlers that are produced by a MakeRoutes
.
Trait Implementations
sourceimpl<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,
sourceimpl<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,
sourcefn make_routes(&self) -> Routes
fn make_routes(&self) -> Routes
Creates a Routes
, which will be used to build a RoutesFinalized
instance.
sourcefn 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.
sourcefn into_make_service(self) -> IntoMakeService<Self> where
Self: Sized,
fn into_make_service(self) -> IntoMakeService<Self> where
Self: Sized,
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn 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;
T: Future, type Output = <T as Future>::Output;
sourcefn 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;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn 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>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn 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;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more