Enum ruma::api::error::ServerError [−][src]
pub enum ServerError<E> {
Known(E),
Unknown(ResponseDeserializationError),
}
This is supported on crate feature
api
only.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>
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