Struct rcache::service::LogService
[−]
[src]
pub struct LogService<T> { pub inner: T, }
A printf logger middleware.
Fields
inner: T
Trait Implementations
impl<T> Service for LogService<T> where
T: Service<Request = Message, Response = Message, Error = Error>,
T::Future: 'static,
[src]
T: Service<Request = Message, Response = Message, Error = Error>,
T::Future: 'static,
type Request = Message
Requests handled by the service.
type Response = Message
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Box<Future<Item = Message, Error = Error>>
The future response value.
fn call(&self, req: Self::Request) -> Self::Future
Process the request and return the response asynchronously.
impl<T> NewService for LogService<T> where
T: NewService<Request = Message, Response = Message, Error = Error>,
<T::Instance as Service>::Future: 'static,
[src]
T: NewService<Request = Message, Response = Message, Error = Error>,
<T::Instance as Service>::Future: 'static,
type Request = Message
Requests handled by the service
type Response = Message
Responses given by the service
type Error = Error
Errors produced by the service
type Instance = LogService<T::Instance>
The Service
value created by this factory
fn new_service(&self) -> Result<Self::Instance>
Create and return a new service value.