pub enum HttpStreamError<C: Client> {
FetchFailure(C::Error),
ResponseFailure(<<C as Client>::Response as ClientResponse>::ResponseError),
}
Available on crate feature
http
only.Expand description
Error returned from an HTTP stream.
Variants§
FetchFailure(C::Error)
Failed to fetch.
ResponseFailure(<<C as Client>::Response as ClientResponse>::ResponseError)
Failed to get response.
Trait Implementations§
Source§impl<C: Client> Debug for HttpStreamError<C>
impl<C: Client> Debug for HttpStreamError<C>
Source§impl<C: Client> DecodeError for HttpStreamError<C>
impl<C: Client> DecodeError for HttpStreamError<C>
Source§async fn decode_error(self) -> String
async fn decode_error(self) -> String
Decodes extra error information.
Source§impl<C: Client> Display for HttpStreamError<C>
impl<C: Client> Display for HttpStreamError<C>
Source§impl<C: Client> Error for HttpStreamError<C>
impl<C: Client> Error for HttpStreamError<C>
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<C> Freeze for HttpStreamError<C>where
<C as Client>::Error: Freeze,
<<C as Client>::Response as ClientResponse>::ResponseError: Freeze,
impl<C> RefUnwindSafe for HttpStreamError<C>where
<C as Client>::Error: RefUnwindSafe,
<<C as Client>::Response as ClientResponse>::ResponseError: RefUnwindSafe,
impl<C> Send for HttpStreamError<C>
impl<C> Sync for HttpStreamError<C>
impl<C> Unpin for HttpStreamError<C>where
<C as Client>::Error: Unpin,
<<C as Client>::Response as ClientResponse>::ResponseError: Unpin,
impl<C> UnwindSafe for HttpStreamError<C>where
<C as Client>::Error: UnwindSafe,
<<C as Client>::Response as ClientResponse>::ResponseError: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.