[][src]Struct tokio_tower::pipeline::client::Maker

pub struct Maker<NT, Request> { /* fields omitted */ }

A factory that makes new Client instances by creating new transports and wrapping them in fresh Clients.

Methods

impl<NT, Request> Maker<NT, Request>[src]

pub fn new(t: NT) -> Self[src]

Make a new Client factory that uses the given MakeTransport factory.

Trait Implementations

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
[src]

type Error = SpawnError<NT::MakeError>

Errors produced by the service.

type Response = Client<NT::Transport, Error<NT::Transport, Request>, Request>

Responses given by the service.

type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send>>

The future response value.

impl<NT, Request> Load for Maker<NT, Request>[src]

type Metric = u8

A comparable load metric. Lesser values are "preferable" to greater values.

Auto Trait Implementations

impl<NT, Request> Send for Maker<NT, Request> where
    NT: Send

impl<NT, Request> Sync for Maker<NT, Request> where
    NT: Sync

impl<NT, Request> Unpin for Maker<NT, Request> where
    NT: Unpin

impl<NT, Request> UnwindSafe for Maker<NT, Request> where
    NT: UnwindSafe

impl<NT, Request> RefUnwindSafe for Maker<NT, Request> where
    NT: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]