pub struct UpstreamError<T>(pub T);Expand description
A recognized upstream failure, retaining its declared vendor error payload. Hosts can render a client error event without parsing a diagnostic string.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Debug> Debug for UpstreamError<T>
impl<T: Debug> Debug for UpstreamError<T>
Source§impl<T: Serialize> Display for UpstreamError<T>
impl<T: Serialize> Display for UpstreamError<T>
Source§impl<T: Debug + Serialize> Error for UpstreamError<T>
impl<T: Debug + Serialize> Error for UpstreamError<T>
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()
Auto Trait Implementations§
impl<T> Freeze for UpstreamError<T>where
T: Freeze,
impl<T> RefUnwindSafe for UpstreamError<T>where
T: RefUnwindSafe,
impl<T> Send for UpstreamError<T>where
T: Send,
impl<T> Sync for UpstreamError<T>where
T: Sync,
impl<T> Unpin for UpstreamError<T>where
T: Unpin,
impl<T> UnsafeUnpin for UpstreamError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UpstreamError<T>where
T: 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