Struct tower_web::util::http::LiftService [−][src]
pub struct LiftService<T> { /* fields omitted */ }Contains an HttpService providing an implementation of Service.
Methods
impl<T> LiftService<T>[src]
impl<T> LiftService<T>ⓘImportant traits for &'a mut Wpub fn get_ref(&self) -> &T[src]
ⓘImportant traits for &'a mut W
pub fn get_ref(&self) -> &TReturn a reference to the underlying HttpServce.
ⓘImportant traits for &'a mut Wpub fn get_mut(&mut self) -> &mut T[src]
ⓘImportant traits for &'a mut W
pub fn get_mut(&mut self) -> &mut TReturn a mutable reference to the underlying HttpServce.
pub fn into_inner(self) -> T[src]
pub fn into_inner(self) -> TConsumes self, returning the underlying HttpServce.
Trait Implementations
impl<T: Debug> Debug for LiftService<T>[src]
impl<T: Debug> Debug for LiftService<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T> Service for LiftService<T> where
T: HttpService, [src]
impl<T> Service for LiftService<T> where
T: HttpService, type Request = Request<T::RequestBody>
Requests handled by the service.
type Response = Response<T::ResponseBody>
Responses given by the service.
type Error = T::Error
Errors produced by the service.
type Future = T::Future
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>[src]
fn poll_ready(&mut self) -> Poll<(), Self::Error>Returns Ready when the service is able to process requests. Read more
fn call(&mut self, request: Self::Request) -> Self::Future[src]
fn call(&mut self, request: Self::Request) -> Self::FutureProcess the request and return the response asynchronously. Read more
fn ready(self) -> Ready<Self>[src]
fn ready(self) -> Ready<Self>A future yielding the service when it is ready to accept a request.
Auto Trait Implementations
impl<T> Send for LiftService<T> where
T: Send,
impl<T> Send for LiftService<T> where
T: Send, impl<T> Sync for LiftService<T> where
T: Sync,
impl<T> Sync for LiftService<T> where
T: Sync,