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

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

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

Implementations

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, Request> Debug for Maker<NT, Request> where
    NT: Debug
[src]

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

type Metric = u8

A comparable load metric. Read more

impl<NT, Target, Request> Service<Target> for Maker<NT, Request> where
    NT: MakeTransport<Target, Request>,
    NT::Transport: 'static + Send + TagStore<Request, NT::Item>,
    <NT::Transport as TagStore<Request, NT::Item>>::Tag: '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.

Auto Trait Implementations

impl<NT, Request> RefUnwindSafe for Maker<NT, Request> where
    NT: RefUnwindSafe
[src]

impl<NT, Request> Send for Maker<NT, Request> where
    NT: Send
[src]

impl<NT, Request> Sync for Maker<NT, Request> where
    NT: Sync
[src]

impl<NT, Request> Unpin for Maker<NT, Request> where
    NT: Unpin
[src]

impl<NT, Request> UnwindSafe for Maker<NT, Request> where
    NT: UnwindSafe
[src]

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.