pub trait IsReady<Request>: Service<Request> {
    fn is_ready(&mut self) -> BoxFuture<'_, bool>;
    fn is_pending(&mut self) -> BoxFuture<'_, bool>;
    fn is_failed(&mut self) -> BoxFuture<'_, bool>;
}
Expand description

An extension trait to check if a Service is immediately ready to be called.

Required Methods

Poll the Service once, and return true if it is immediately ready to be called.

Poll the Service once, and return true if it is pending.

Poll the Service once, and return true if it has failed.

Implementors