Struct tower_web::middleware::log::LogService [−][src]
pub struct LogService<S> { /* fields omitted */ }Decorates a service by logging all received requests
Trait Implementations
impl<S: Debug> Debug for LogService<S>[src]
impl<S: Debug> Debug for LogService<S>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<S, RequestBody, ResponseBody> Service for LogService<S> where
S: Service<Request = Request<RequestBody>, Response = Response<ResponseBody>>,
S::Error: Error, [src]
impl<S, RequestBody, ResponseBody> Service for LogService<S> where
S: Service<Request = Request<RequestBody>, Response = Response<ResponseBody>>,
S::Error: Error, type Request = S::Request
Requests handled by the service.
type Response = S::Response
Responses given by the service.
type Error = S::Error
Errors produced by the service.
type Future = ResponseFuture<S::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<S> Send for LogService<S> where
S: Send,
impl<S> Send for LogService<S> where
S: Send, impl<S> Sync for LogService<S> where
S: Sync,
impl<S> Sync for LogService<S> where
S: Sync,