Enum ruma_client::Error [−][src]
#[non_exhaustive] pub enum Error<E, F> { AuthenticationRequired, IntoHttp(IntoHttpError), Url(Error), Response(E), FromHttpResponse(FromHttpResponseError<F>), }
Expand description
An error that can occur during client operations.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Queried endpoint requires authentication but was called on an anonymous client.
Construction of the HTTP request failed (this should never happen).
Tuple Fields of IntoHttp
The request’s URL is invalid (this should never happen).
Tuple Fields of Url
0: Error
Couldn’t obtain an HTTP response (e.g. due to network or DNS issues).
Converting the HTTP response to one of ruma’s types failed.
Tuple Fields of FromHttpResponse
0: FromHttpResponseError<F>
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<E, F> !RefUnwindSafe for Error<E, F>
impl<E, F> !UnwindSafe for Error<E, F>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more