Enum ruma_api::error::FromHttpResponseError [−][src]
#[non_exhaustive] pub enum FromHttpResponseError<E> { Deserialization(ResponseDeserializationError), Http(ServerError<E>), }
Expand description
An error when converting a http response to one of Ruma’s endpoint-specific response types.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Deserialization failed
Tuple Fields of Deserialization
The server returned a non-success status
Tuple Fields of Http
0: ServerError<E>
Trait Implementations
Performs the conversion.