pub enum Error<T, I>{
BrokenTransportSend(<T as Sink<I>>::Error),
BrokenTransportRecv(Option<<T as TryStream>::Error>),
TransportFull,
ClientDropped,
Desynchronized,
}
Expand description
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.
Desynchronized
The server sent a response that the client was not expecting.
Trait Implementations§
Source§impl<T, I> Error for Error<T, I>
impl<T, I> Error for Error<T, I>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<T, I> Freeze for Error<T, I>
impl<T, I> RefUnwindSafe for Error<T, I>
impl<T, I> Send for Error<T, I>
impl<T, I> Sync for Error<T, I>
impl<T, I> Unpin for Error<T, I>
impl<T, I> UnwindSafe for Error<T, I>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more