pub struct NewWebService<T, U, M>where
T: Resource,{ /* private fields */ }Expand description
Creates new WebService values.
Instances of this type are created by ServiceBuilder. A NewWebService
instance is used to generate a WebService instance per connection.
Trait Implementations§
Source§impl<T, U, M> Debug for NewWebService<T, U, M>
impl<T, U, M> Debug for NewWebService<T, U, M>
Source§impl<T, U, M> NewService for NewWebService<T, U, M>
impl<T, U, M> NewService for NewWebService<T, U, M>
Source§type Request = Request<<M as HttpMiddleware<RoutedService<T, U>>>::RequestBody>
type Request = Request<<M as HttpMiddleware<RoutedService<T, U>>>::RequestBody>
Requests handled by the service
Source§type Response = Response<<M as HttpMiddleware<RoutedService<T, U>>>::ResponseBody>
type Response = Response<<M as HttpMiddleware<RoutedService<T, U>>>::ResponseBody>
Responses given by the service
Source§type Error = <M as HttpMiddleware<RoutedService<T, U>>>::Error
type Error = <M as HttpMiddleware<RoutedService<T, U>>>::Error
Errors produced by the service
Source§type Service = WebService<T, U, M>
type Service = WebService<T, U, M>
The
Service value created by this factorySource§type Future = FutureResult<<NewWebService<T, U, M> as NewService>::Service, <NewWebService<T, U, M> as NewService>::InitError>
type Future = FutureResult<<NewWebService<T, U, M> as NewService>::Service, <NewWebService<T, U, M> as NewService>::InitError>
The future of the
Service instance.Source§fn new_service(&self) -> Self::Future
fn new_service(&self) -> Self::Future
Create and return a new service value asynchronously.
Auto Trait Implementations§
impl<T, U, M> Freeze for NewWebService<T, U, M>
impl<T, U, M> !RefUnwindSafe for NewWebService<T, U, M>
impl<T, U, M> Send for NewWebService<T, U, M>
impl<T, U, M> Sync for NewWebService<T, U, M>
impl<T, U, M> Unpin for NewWebService<T, U, M>
impl<T, U, M> !UnwindSafe for NewWebService<T, U, M>
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> 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 moreSource§impl<T, B1, B2> NewHttpService for T
impl<T, B1, B2> NewHttpService for T
Source§type RequestBody = B1
type RequestBody = B1
The HTTP request body handled by the service.
Source§type ResponseBody = B2
type ResponseBody = B2
The HTTP response body returned by the service.
Source§type Error = <T as NewService>::Error
type Error = <T as NewService>::Error
Errors produced by the service
Source§type Service = <T as NewService>::Service
type Service = <T as NewService>::Service
The
Service value created by this factorySource§type InitError = <T as NewService>::InitError
type InitError = <T as NewService>::InitError
Errors produced while building a service.
Source§type Future = <T as NewService>::Future
type Future = <T as NewService>::Future
The future of the
Service instance.Source§fn new_http_service(&self) -> <T as NewHttpService>::Future
fn new_http_service(&self) -> <T as NewHttpService>::Future
Create and return a new service value asynchronously.