[][src]Enum tokio_tower::Error

pub enum Error<T, I> where
    T: Sink<I> + TryStream
{ BrokenTransportSend(<T as Sink<I>>::Error), BrokenTransportRecv(Option<<T as TryStream>::Error>), TransportFull, ClientDropped, }

An error that occurred while servicing a request.

Variants

BrokenTransportSend(<T as Sink<I>>::Error)

The underlying transport failed to send a request.

BrokenTransportRecv(Option<<T as TryStream>::Error>)

The underlying transport failed while attempting to receive a response.

If None, the transport closed without error while there were pending requests.

TransportFull

Attempted to issue a call when no more requests can be in flight.

See tower_service::Service::poll_ready and [Client::with_limit].

ClientDropped

Attempted to issue a call, but the underlying transport has been closed.

Trait Implementations

impl<T, I> Display for Error<T, I> where
    T: Sink<I> + TryStream,
    <T as Sink<I>>::Error: Display,
    <T as TryStream>::Error: Display
[src]

impl<T, I> Debug for Error<T, I> where
    T: Sink<I> + TryStream,
    <T as Sink<I>>::Error: Debug,
    <T as TryStream>::Error: Debug
[src]

impl<T, I> Error for Error<T, I> where
    T: Sink<I> + TryStream,
    <T as Sink<I>>::Error: Error,
    <T as TryStream>::Error: Error
[src]

Auto Trait Implementations

impl<T, I> Send for Error<T, I> where
    <T as Sink<I>>::Error: Send,
    <T as TryStream>::Error: Send

impl<T, I> Sync for Error<T, I> where
    <T as Sink<I>>::Error: Sync,
    <T as TryStream>::Error: Sync

impl<T, I> Unpin for Error<T, I> where
    <T as Sink<I>>::Error: Unpin,
    <T as TryStream>::Error: Unpin

impl<T, I> UnwindSafe for Error<T, I> where
    <T as Sink<I>>::Error: UnwindSafe,
    <T as TryStream>::Error: UnwindSafe

impl<T, I> RefUnwindSafe for Error<T, I> where
    <T as Sink<I>>::Error: RefUnwindSafe,
    <T as TryStream>::Error: RefUnwindSafe

Blanket Implementations

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

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

impl<T> ToString for T where
    T: Display + ?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<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]