pub struct AppBase<C: Concurrency = ThreadSafe> { /* private fields */ }
Expand description
The main type representing an HTTP application.
Implementations
sourceimpl<T> AppBase<T>where
T: Concurrency,
impl<T> AppBase<T>where
T: Concurrency,
sourceimpl<C> AppBase<C>where
C: Concurrency,
impl<C> AppBase<C>where
C: Concurrency,
sourcepub fn with_modify_service<M>(self, modify_service: M) -> WithModifyService<C, M>
pub fn with_modify_service<M>(self, modify_service: M) -> WithModifyService<C, M>
Converts itself into a MakeService
with the specified ModifyService
.
Trait Implementations
sourceimpl<C: Clone + Concurrency> Clone for AppBase<C>
impl<C: Clone + Concurrency> Clone for AppBase<C>
sourceimpl<C: Debug + Concurrency> Debug for AppBase<C>
impl<C: Debug + Concurrency> Debug for AppBase<C>
sourceimpl<C, Ctx, Bd> MakeService<Ctx, Request<Bd>> for AppBase<C>where
C: Concurrency,
RequestBody: From<Bd>,
impl<C, Ctx, Bd> MakeService<Ctx, Request<Bd>> for AppBase<C>where
C: Concurrency,
RequestBody: From<Bd>,
type Response = <AppService<C> as Service<Request<Bd>>>::Response
type Response = <AppService<C> as Service<Request<Bd>>>::Response
The response type returned by
Service
.type Error = <AppService<C> as Service<Request<Bd>>>::Error
type Error = <AppService<C> as Service<Request<Bd>>>::Error
The error type returned by
Service
.type Service = AppService<C>
type Service = AppService<C>
The type of services created by this factory.
type Future = FutureResult<<AppBase<C> as MakeService<Ctx, Request<Bd>>>::Service, <AppBase<C> as MakeService<Ctx, Request<Bd>>>::MakeError>
type Future = FutureResult<<AppBase<C> as MakeService<Ctx, Request<Bd>>>::Service, <AppBase<C> as MakeService<Ctx, Request<Bd>>>::MakeError>
The type of
Future
returned from make_service
.sourcefn make_service(&self, _: Ctx) -> Self::Future
fn make_service(&self, _: Ctx) -> Self::Future
Creates a
Future
that will return a value of Service
.Auto Trait Implementations
impl<C> RefUnwindSafe for AppBase<C>where
<C as ConcurrencyImpl>::Handler: RefUnwindSafe,
impl<C> Send for AppBase<C>where
<C as ConcurrencyImpl>::Handler: Send + Sync,
impl<C> Sync for AppBase<C>where
<C as ConcurrencyImpl>::Handler: Send + Sync,
impl<C> Unpin for AppBase<C>
impl<C> UnwindSafe for AppBase<C>where
<C as ConcurrencyImpl>::Handler: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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