Enum ruma::api::error::FromHttpResponseError [−][src]
#[non_exhaustive]
pub enum FromHttpResponseError<E> {
Deserialization(ResponseDeserializationError),
Http(ServerError<E>),
}
This is supported on crate feature
api
only.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.
Performs the conversion.
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>
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