pub struct Maker<NT, Request> { /* fields omitted */ }
Expand description
A factory that makes new Client
instances by creating new transports and wrapping them in
fresh Client
s.
impl<NT, Request> Maker<NT, Request>
Make a new Client
factory that uses the given MakeTransport
factory.
Formats the value using the given formatter. Read more
impl<NT, Request> Load for Maker<NT, Request>
Estimate the service’s current load.
impl<NT, Target, Request> Service<Target> for Maker<NT, Request> where
NT: MakeTransport<Target, Request>,
NT::Transport: 'static + Send,
Request: 'static + Send,
NT::Item: 'static + Send,
NT::SinkError: 'static + Send + Sync,
NT::Error: 'static + Send + Sync,
NT::Future: 'static + Send,
Errors produced by the service.
Responses given by the service.
The future response value.
Process the request and return the response asynchronously. Read more
Returns Poll::Ready(Ok(()))
when the service is able to process requests. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the current Span
, returning an
Instrumented
wrapper. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.