pub struct AppBase<C: Concurrency = ThreadSafe> { /* private fields */ }
Expand description
The main type representing an HTTP application.
Implementations§
Source§impl<T> AppBase<T>where
T: Concurrency,
impl<T> AppBase<T>where
T: Concurrency,
Source§impl<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§
Source§impl<C, Ctx, Bd> MakeService<Ctx, Request<Bd>> for AppBase<C>
impl<C, Ctx, Bd> MakeService<Ctx, Request<Bd>> for AppBase<C>
Source§type Response = <AppService<C> as Service<Request<Bd>>>::Response
type Response = <AppService<C> as Service<Request<Bd>>>::Response
The response type returned by
Service
.Source§type Error = <AppService<C> as Service<Request<Bd>>>::Error
type Error = <AppService<C> as Service<Request<Bd>>>::Error
The error type returned by
Service
.Source§type Service = AppService<C>
type Service = AppService<C>
The type of services created by this factory.
Source§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
.Source§fn 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> Freeze for AppBase<C>
impl<C> RefUnwindSafe for AppBase<C>where
<C as ConcurrencyImpl>::Handler: RefUnwindSafe,
impl<C> Send for AppBase<C>
impl<C> Sync for AppBase<C>
impl<C> Unpin for AppBase<C>
impl<C> UnwindSafe for AppBase<C>where
<C as ConcurrencyImpl>::Handler: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more