pub struct RoutedService<T, U>where
T: Resource,{ /* private fields */ }Expand description
Web service
Trait Implementations§
Source§impl<T, U> Clone for RoutedService<T, U>
impl<T, U> Clone for RoutedService<T, U>
Source§fn clone(&self) -> RoutedService<T, U>
fn clone(&self) -> RoutedService<T, U>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, U> Debug for RoutedService<T, U>
impl<T, U> Debug for RoutedService<T, U>
Source§impl<T, U> Service for RoutedService<T, U>
impl<T, U> Service for RoutedService<T, U>
Source§type Response = <<RoutedService<T, U> as Service>::Future as Future>::Item
type Response = <<RoutedService<T, U> as Service>::Future as Future>::Item
Responses given by the service.
Source§fn poll_ready(&mut self) -> Poll<(), Self::Error>
fn poll_ready(&mut self) -> Poll<(), Self::Error>
Returns
Ready when the service is able to process requests. Read moreAuto Trait Implementations§
impl<T, U> Freeze for RoutedService<T, U>
impl<T, U> !RefUnwindSafe for RoutedService<T, U>
impl<T, U> Send for RoutedService<T, U>
impl<T, U> Sync for RoutedService<T, U>
impl<T, U> Unpin for RoutedService<T, U>
impl<T, U> !UnwindSafe for RoutedService<T, U>
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, B1, B2> HttpService for T
impl<T, B1, B2> HttpService for T
Source§type RequestBody = B1
type RequestBody = B1
Request payload.
Source§type ResponseBody = B2
type ResponseBody = B2
The HTTP response body type.
Source§fn poll_http_ready(&mut self) -> Result<Async<()>, <T as Service>::Error>
fn poll_http_ready(&mut self) -> Result<Async<()>, <T as Service>::Error>
Returns
Ready when the service is able to process requests.Source§fn call_http(
&mut self,
request: Request<<T as HttpService>::RequestBody>,
) -> <T as HttpService>::Future
fn call_http( &mut self, request: Request<<T as HttpService>::RequestBody>, ) -> <T as HttpService>::Future
Process the request and return the response asynchronously.
Source§fn lift(self) -> LiftService<Self>where
Self: Sized,
fn lift(self) -> LiftService<Self>where
Self: Sized,
Wraps
self with LiftService. This provides an implementation of
Service for Self.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