pub enum ClientError {
Reqwest {
source: ReqwestClientError,
},
Api {
source: ApiError,
},
NoCompatibleApiVersion {
url: Url,
compatible_versions: String,
},
InvalidOidcUrl {
url: String,
source: ParseError,
},
InvalidUrlDiscovered {
url: Url,
},
}Expand description
The error that can result from requests sent by the client.
Variants§
Reqwest
The http_request_derive library reqwest integration returned an error.
These are usually errors caused by either functionality in the
reqwest crate, or when handling the data returned from reqwest.
They don’t indicate a non-successful HTTP status code, that is indicated
by the ClientError::Api variant.
Fields
source: ReqwestClientErrorThe source error.
Api
The API returned an HTTP response with an HTTP status code which is considered non-successful.
NoCompatibleApiVersion
No compatible API version found under the well-known API endpoint.
Fields
InvalidOidcUrl
The OpenTalk API returned an invalid OIDC URL.
Fields
source: ParseErrorThe error that was encountered when attempting to parse the URL.
InvalidUrlDiscovered
The OpenTalk API returned an OIDC URL which cannot be a base and is therefore invalid for usage in OIDC.
This happens e.g. for data: URLs.
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
Source§impl ErrorCompat for ClientError
impl ErrorCompat for ClientError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Error::source. Read moreSource§impl From<ApiError> for ClientError
impl From<ApiError> for ClientError
Source§impl From<ReqwestClientError> for ClientError
impl From<ReqwestClientError> for ClientError
Source§fn from(source: ReqwestClientError) -> Self
fn from(source: ReqwestClientError) -> Self
Auto Trait Implementations§
impl !Freeze for ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnsafeUnpin for ClientError
impl !UnwindSafe for ClientError
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)
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.