[][src]Trait tari_service_framework::tower::ServiceExt

pub trait ServiceExt<TRequest>: Service<TRequest> {
    fn call_ready(&mut self, req: TRequest) -> ServiceCallReady<Self, TRequest>
    where
        Self::Future: Unpin
, { ... } }

Provided methods

Important traits for ServiceCallReady<'_, S, TRequest>
fn call_ready(&mut self, req: TRequest) -> ServiceCallReady<Self, TRequest> where
    Self::Future: Unpin

The service combinator combines calling poll_ready and call into a single call. It returns a ServiceCallReady future that calls poll_ready on the given service, once the service is ready to receive a request, call is called and the resulting future is polled.

Loading content...

Implementors

impl<T: ?Sized, TRequest> ServiceExt<TRequest> for T where
    T: Service<TRequest>, 
[src]

Loading content...