pub enum Error {
InvalidApiKey {
source: InvalidHeaderValue,
},
ConstructUrl {
source: ParseError,
suffix: String,
},
PerformRequestNew {
source: Error,
},
PerformRequest {
source: Error,
url: Url,
},
BadResponse {
code: u16,
description: Option<String>,
},
MissingResponseHeader {
header: String,
},
BadPart {
source: EventStreamError<Error>,
},
Deserialize {
source: Error,
},
DecodeResponse {
source: Error,
},
UrlParse {
source: ParseError,
},
Io {
source: Error,
},
}
Variants§
InvalidApiKey
Fields
§
source: InvalidHeaderValue
ConstructUrl
PerformRequestNew
PerformRequest
BadResponse
MissingResponseHeader
BadPart
Fields
§
source: EventStreamError<Error>
Deserialize
DecodeResponse
UrlParse
Fields
§
source: ParseError
Io
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for Error
impl ErrorCompat for Error
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl IntoError<Error> for BadPartSnafu
impl IntoError<Error> for BadPartSnafu
Source§type Source = EventStreamError<Error>
type Source = EventStreamError<Error>
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<Error> for BadResponseSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for BadResponseSnafu<__T0, __T1>
Source§impl<__T0> IntoError<Error> for ConstructUrlSnafu<__T0>
impl<__T0> IntoError<Error> for ConstructUrlSnafu<__T0>
Source§type Source = ParseError
type Source = ParseError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for DecodeResponseSnafu
impl IntoError<Error> for DecodeResponseSnafu
Source§impl IntoError<Error> for DeserializeSnafu
impl IntoError<Error> for DeserializeSnafu
Source§impl IntoError<Error> for InvalidApiKeySnafu
impl IntoError<Error> for InvalidApiKeySnafu
Source§type Source = InvalidHeaderValue
type Source = InvalidHeaderValue
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl<__T0> IntoError<Error> for MissingResponseHeaderSnafu<__T0>
impl<__T0> IntoError<Error> for MissingResponseHeaderSnafu<__T0>
Source§impl IntoError<Error> for PerformRequestNewSnafu
impl IntoError<Error> for PerformRequestNewSnafu
Source§impl<__T0> IntoError<Error> for PerformRequestSnafu<__T0>
impl<__T0> IntoError<Error> for PerformRequestSnafu<__T0>
Source§impl IntoError<Error> for UrlParseSnafu
impl IntoError<Error> for UrlParseSnafu
Source§type Source = ParseError
type Source = ParseError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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.