pub enum Error<T, S>{
BrokenTransportRecv(<T as TryStream>::Error),
BrokenTransportSend(<T as Sink<S::Response>>::Error),
Service(S::Error),
}
Expand description
An error that occurred while servicing a request.
Variants§
BrokenTransportRecv(<T as TryStream>::Error)
The underlying transport failed to produce a request.
BrokenTransportSend(<T as Sink<S::Response>>::Error)
The underlying transport failed while attempting to send a response.
Service(S::Error)
The underlying service failed to process a request.
Trait Implementations§
Source§impl<T, S> Error for Error<T, S>
impl<T, S> Error for Error<T, S>
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, S> Freeze for Error<T, S>
impl<T, S> RefUnwindSafe for Error<T, S>where
<T as TryStream>::Error: RefUnwindSafe,
<T as Sink<<S as Service<<T as TryStream>::Ok>>::Response>>::Error: RefUnwindSafe,
<S as Service<<T as TryStream>::Ok>>::Error: RefUnwindSafe,
impl<T, S> Send for Error<T, S>
impl<T, S> Sync for Error<T, S>
impl<T, S> Unpin for Error<T, S>
impl<T, S> UnwindSafe for Error<T, S>where
<T as TryStream>::Error: UnwindSafe,
<T as Sink<<S as Service<<T as TryStream>::Ok>>::Response>>::Error: UnwindSafe,
<S as Service<<T as TryStream>::Ok>>::Error: UnwindSafe,
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