Type Alias tower::util::ReadyAnd

source ·
pub type ReadyAnd<'a, T, Request> = Ready<'a, T, Request>;
👎Deprecated since 0.4.6: Please use the Ready future instead
Available on crate feature util only.
Expand description

A future that yields a mutable reference to the service when it is ready to accept a request.

ReadyAnd values are produced by ServiceExt::ready_and.

Aliased Type§

struct ReadyAnd<'a, T, Request>(/* private fields */);

Implementations

source§

impl<'a, T, Request> Ready<'a, T, Request>
where T: Service<Request>,

source

pub fn new(service: &'a mut T) -> Self

Trait Implementations

source§

impl<'a, T, Request> Debug for Ready<'a, T, Request>
where T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, T, Request> Future for Ready<'a, T, Request>
where T: Service<Request>,

§

type Output = Result<&'a mut T, <T as Service<Request>>::Error>

The type of value produced on completion.
source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
source§

impl<'a, T, Request> Unpin for Ready<'a, T, Request>