Enum ruma_api::error::ServerError [−][src]
pub enum ServerError<E> {
Known(E),
Unknown(ResponseDeserializationError),
}Expand description
An error was reported by the server (HTTP status code 4xx or 5xx)
Variants
An error that is expected to happen under certain circumstances and that has a well-defined structure
Unknown(ResponseDeserializationError)An error of unexpected type of structure
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<E> !RefUnwindSafe for ServerError<E>impl<E> Send for ServerError<E> where
E: Send, impl<E> Sync for ServerError<E> where
E: Sync, impl<E> Unpin for ServerError<E> where
E: Unpin, impl<E> !UnwindSafe for ServerError<E>