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(ResponseDeserializationError)Deserialization failed
Http(ServerError<E>)The server returned a non-success status
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<E> !RefUnwindSafe for FromHttpResponseError<E>impl<E> Send for FromHttpResponseError<E> where
E: Send, impl<E> Sync for FromHttpResponseError<E> where
E: Sync, impl<E> Unpin for FromHttpResponseError<E> where
E: Unpin, impl<E> !UnwindSafe for FromHttpResponseError<E>