Enum matrix_sdk::ServerError [−]
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
An error of unexpected type of structure
Trait Implementations
impl<E> Debug for ServerError<E> where
E: Debug,
impl<E> Debug for ServerError<E> where
E: Debug,
impl<E> Display for ServerError<E> where
E: Display,
impl<E> Display for ServerError<E> where
E: Display,
impl<E> Error for ServerError<E> where
E: Error,
impl<E> Error for ServerError<E> where
E: Error,
impl<E> From<ServerError<E>> for FromHttpResponseError<E>
impl<E> From<ServerError<E>> for FromHttpResponseError<E>
pub fn from(err: ServerError<E>) -> FromHttpResponseError<E>
pub fn from(err: ServerError<E>) -> FromHttpResponseError<E>
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
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V