Struct hrpc::server::ServiceStack [−][src]
pub struct ServiceStack<Outer, Inner> where
Outer: MakeRoutes,
Inner: MakeRoutes, { /* fields omitted */ }
Expand description
Type that contains two MakeRoutes
s and stacks (combines) them.
Trait Implementations
impl<Outer, Inner> Clone for ServiceStack<Outer, Inner> where
Outer: MakeRoutes + Clone,
Inner: MakeRoutes + Clone,
impl<Outer, Inner> Clone for ServiceStack<Outer, Inner> where
Outer: MakeRoutes + Clone,
Inner: MakeRoutes + Clone,
impl<Outer, Inner> MakeRoutes for ServiceStack<Outer, Inner> where
Outer: MakeRoutes,
Inner: MakeRoutes,
impl<Outer, Inner> MakeRoutes for ServiceStack<Outer, Inner> where
Outer: MakeRoutes,
Inner: 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<Outer, Inner> RefUnwindSafe for ServiceStack<Outer, Inner> where
Inner: RefUnwindSafe,
Outer: RefUnwindSafe,
impl<Outer, Inner> Send for ServiceStack<Outer, Inner>
impl<Outer, Inner> Sync for ServiceStack<Outer, Inner> where
Inner: Sync,
Outer: Sync,
impl<Outer, Inner> Unpin for ServiceStack<Outer, Inner> where
Inner: Unpin,
Outer: Unpin,
impl<Outer, Inner> UnwindSafe for ServiceStack<Outer, Inner> where
Inner: UnwindSafe,
Outer: 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