pub enum ItemError<S: ConnectionErrors, E: Debug> {
Recv(S::RecvError),
Downcast,
Application(E),
}
Expand description
Client error when handling responses from a server streaming request.
This combines network errors with application errors.
Variants§
Recv(S::RecvError)
Unable to receive the response from the server
Downcast
Unexpected response from the server
Application(E)
Application error
Trait Implementations§
Source§impl<S: ConnectionErrors, E: Debug> Error for ItemError<S, E>
impl<S: ConnectionErrors, E: Debug> Error for ItemError<S, 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()
Auto Trait Implementations§
impl<S, E> Freeze for ItemError<S, E>
impl<S, E> RefUnwindSafe for ItemError<S, E>
impl<S, E> Send for ItemError<S, E>where
E: Send,
impl<S, E> Sync for ItemError<S, E>where
E: Sync,
impl<S, E> Unpin for ItemError<S, E>where
E: Unpin,
impl<S, E> UnwindSafe for ItemError<S, E>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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