[][src]Struct tokio_tower::multiplex::MultiplexTransport

pub struct MultiplexTransport<T, S> { /* fields omitted */ }

A convenience wrapper that lets you take separate transport and tag store types and use them as a single [client::Transport].

Methods

impl<T, S> MultiplexTransport<T, S>[src]

pub fn new(transport: T, tagger: S) -> Self[src]

Fuse together the given transport and tagger into a single Transport.

Trait Implementations

impl<T: Debug, S: Debug> Debug for MultiplexTransport<T, S>[src]

impl<T, S> PinnedDrop for MultiplexTransport<T, S>[src]

impl<T, S, Request> Sink<Request> for MultiplexTransport<T, S> where
    T: Sink<Request>, 
[src]

type Error = <T as Sink<Request>>::Error

The type of value produced by the sink when an error occurs.

impl<T, S> Stream for MultiplexTransport<T, S> where
    T: TryStream
[src]

type Item = Result<<T as TryStream>::Ok, <T as TryStream>::Error>

Values yielded by the stream.

impl<T, S, Request> TagStore<Request, <T as TryStream>::Ok> for MultiplexTransport<T, S> where
    T: Sink<Request> + TryStream,
    S: TagStore<Request, <T as TryStream>::Ok>, 
[src]

type Tag = <S as TagStore<Request, <T as TryStream>::Ok>>::Tag

The type used for tags.

impl<'pin, T, S> Unpin for MultiplexTransport<T, S> where
    __MultiplexTransport<'pin, T, S>: Unpin
[src]

Auto Trait Implementations

impl<T, S> RefUnwindSafe for MultiplexTransport<T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, S> Send for MultiplexTransport<T, S> where
    S: Send,
    T: Send

impl<T, S> Sync for MultiplexTransport<T, S> where
    S: Sync,
    T: Sync

impl<T, S> UnwindSafe for MultiplexTransport<T, S> where
    S: UnwindSafe,
    T: UnwindSafe

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized
[src]

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<St> StreamExt for St where
    St: Stream + ?Sized
[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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]