pub enum TimeoutError<E> {
Service(E),
Timeout,
}Expand description
Error returned by a timed service call.
Variants§
Service(E)
Error returned by the wrapped service.
Timeout
The service call exceeded its timeout.
Time spent waiting for readiness before the call does not count.
Trait Implementations§
Source§impl<E> Debug for TimeoutError<E>where
E: Debug,
impl<E> Debug for TimeoutError<E>where
E: Debug,
Source§impl<E> Display for TimeoutError<E>where
E: Display,
impl<E> Display for TimeoutError<E>where
E: Display,
Source§impl<E> Error for TimeoutError<E>
impl<E> Error for TimeoutError<E>
1.30.0 · 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()
Source§impl<E> From<E> for TimeoutError<E>
impl<E> From<E> for TimeoutError<E>
Source§fn from(err: E) -> TimeoutError<E>
fn from(err: E) -> TimeoutError<E>
Converts to this type from the input type.
Source§impl<E> PartialEq for TimeoutError<E>where
E: PartialEq,
impl<E> PartialEq for TimeoutError<E>where
E: PartialEq,
Source§impl<St, E> WebResponseError<St, DefaultError> for TimeoutError<E>
Return GATEWAY_TIMEOUT for TimeoutError
impl<St, E> WebResponseError<St, DefaultError> for TimeoutError<E>
Return GATEWAY_TIMEOUT for TimeoutError
Source§fn error_response(&self, st: &St) -> HttpResponse
fn error_response(&self, st: &St) -> HttpResponse
Generate response for error Read more
Auto Trait Implementations§
impl<E> Freeze for TimeoutError<E>where
E: Freeze,
impl<E> RefUnwindSafe for TimeoutError<E>where
E: RefUnwindSafe,
impl<E> Send for TimeoutError<E>where
E: Send,
impl<E> Sync for TimeoutError<E>where
E: Sync,
impl<E> Unpin for TimeoutError<E>where
E: Unpin,
impl<E> UnsafeUnpin for TimeoutError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for TimeoutError<E>where
E: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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