Type Alias ruma::client::ResponseError
source · pub type ResponseError<C, R> = Error<<C as HttpClient>::Error, <R as OutgoingRequest>::EndpointError>;
Available on crate feature
client
only.Expand description
The error type for sending the request R
with the http client C
.
Aliased Type§
enum ResponseError<C, R> {
AuthenticationRequired,
IntoHttp(IntoHttpError),
Url(Error),
Response(<C as HttpClient>::Error),
FromHttpResponse(FromHttpResponseError<<R as OutgoingRequest>::EndpointError>),
}
Variants§
AuthenticationRequired
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).
Response(<C as HttpClient>::Error)
Couldn’t obtain an HTTP response (e.g. due to network or DNS issues).
FromHttpResponse(FromHttpResponseError<<R as OutgoingRequest>::EndpointError>)
Converting the HTTP response to one of ruma’s types failed.