Enum ruma::client::Error [−][src]
#[non_exhaustive] pub enum Error<E, F> { AuthenticationRequired, IntoHttp(IntoHttpError), Url(Error), Response(E), FromHttpResponse(FromHttpResponseError<F>), }
client
only.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.
IntoHttp(IntoHttpError)
Construction of the HTTP request failed (this should never happen).
Url(Error)
The request’s URL is invalid (this should never happen).
Couldn’t obtain an HTTP response (e.g. due to network or DNS issues).
FromHttpResponse(FromHttpResponseError<F>)
Converting the HTTP response to one of ruma’s types failed.
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
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
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